Skip to contents

Extract a standardized country name from geo_loc_tag column

Usage

extract_country(meta, parallel = FALSE)

Arguments

meta

A PDD metadata table

parallel

boolean, should furrr be used to parallelize? need to set your future::plan()

Value

a two column tibble with target_acc and country as columns

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