names_to | R Documentation |
This allows you to use the taxo hierarch to move up to a more broad name
names_to(df, new_names, suppress_print = F)
df |
an ecotaxa tsv-style dataframe |
new_names |
a vector of character names to move towards default |
suppress_print |
set to true to stop messages of matches |
Alex Barth
# Re-classifying to a broader group:
Copepod_obj <- ecopart_example |>
add_zoo(func = names_to, col_name = 'name',
new_names = c('living', 'not-living', 'Copepoda'),
suppress_print = TRUE)
#working with a single zoo_df will return name vector
cast1_copes <- ecopart_example$zoo_files$bats361_ctd1 |>
names_to(new_names = c('living', 'not-living', 'Copepoda'))
# how many copepods in cast 1?
cast1_copes |> table()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.