set_age_classes | R Documentation |
Classify age codes found in Gamebirds in subclasses. Subclasses are defined in the age_classes argument where each class is associated to one or several age codes.
set_age_classes(df, age_classes = NULL)
df |
The dataframe in which we want to add age classes |
age_classes |
A list that associates a new class with the age codes found in the "Age" column of the Gamebirds dataset, Default: NULL |
The age codes are found in the Gamebirds "Age" column (renamed "age_code" by default in the dataframe loaded by the package).
If no value is given for the age_classes
argument, the following values are
used: age_classes = list("HY" = c(2, 3, 4), "AHY" = c(1, 5, 6, 7, 8)).
The modified dataframe with a new column named age_short
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.