SimonGreenhill / rcldf

rcldf - The R library for reading CLDF files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"NA" in strings should not be NA

SimonGreenhill opened this issue · comments

Noticed in glottolog-cldf:

> g$tables$LanguageTable %>% filter(Countries == 'NA')
# no rows found.. .and languages in Namibia are coded as NA (=missing):

> g$tables$LanguageTable %>% filter(ID == 'mbal1255')
# A tibble: 1 × 13
  ID       Name  Macro…¹ Latit…² Longi…³ Glott…⁴ ISO63…⁵ Count…⁶ Famil…⁷ Langu…⁸
  <chr>    <chr> <chr>     <dbl>   <dbl> <chr>   <chr>   <chr>   <chr>   <chr>
1 mbal1255 CentAfrica    -17.6    16.0 mbal12lnb     NA      atla12NA