Extract the state name from the geo_loc_name column, this only makes sence for USA isolates
Source:R/metadata_cleanup_tools.R
extract_state.Rd
Extract the state name from the geo_loc_name column, this only makes sence for USA isolates
Examples
klebsiella_example_dat %>% extract_state()
#> # A tibble: 200 × 2
#> target_acc State
#> <chr> <chr>
#> 1 PDT001211141.1 ""
#> 2 PDT000434574.1 "NY"
#> 3 PDT001009222.1 ""
#> 4 PDT000414882.1 ""
#> 5 PDT000431384.1 ""
#> 6 PDT001020147.1 ""
#> 7 PDT000875073.1 ""
#> 8 PDT000172180.4 "OH"
#> 9 PDT000852554.1 "NY"
#> 10 PDT001025462.1 "IL"
#> # ℹ 190 more rows