Extract a standardized country name from geo_loc_tag column
Source:R/metadata_cleanup_tools.R
extract_country.Rd
Extract a standardized country name from geo_loc_tag column
Arguments
- meta
A PDD metadata table
- parallel
boolean, should furrr be used to parallelize? need to set your future::plan()
Examples
klebsiella_example_dat %>% extract_country()
#> # A tibble: 200 × 2
#> target_acc country
#> <chr> <chr>
#> 1 PDT001211141.1 USA
#> 2 PDT000434574.1 USA
#> 3 PDT001009222.1 USA
#> 4 PDT000414882.1 USA
#> 5 PDT000431384.1 USA
#> 6 PDT001020147.1 USA
#> 7 PDT000875073.1 USA
#> 8 PDT000172180.4 USA
#> 9 PDT000852554.1 USA
#> 10 PDT001025462.1 USA
#> # ℹ 190 more rows