set_sex_classes | R Documentation |
Classify sex codes found in Gamebirds in subclasses. Subclasses are defined in the sex_classes argument where each class is associated to one or several sex codes.
set_sex_classes(df, sex_classes = NULL)
df |
The dataframe in which we want to add sex classes |
sex_classes |
A list that associates a new class with the sex codes found in the "Sex" column of the Gamebirds dataset, Default: NULL |
The sex codes are found in the Gamebirds "Sex" column (renamed "sex_code" by default in the dataframe loaded by the package).
If no value is given for the sex_classes
argument, the following values are
used: sex_classes = list("MALE" = 4, "FEMALE" = 5).
The modified dataframe with the sex classes placed in the column sex
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.