set_sex_classes: Set sex classes

View source: R/prepare_data.R

set_sex_classesR Documentation

Set sex classes

Description

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.

Usage

set_sex_classes(df, sex_classes = NULL)

Arguments

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

Details

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).

Value

The modified dataframe with the sex classes placed in the column sex


Vin985/gblincoln documentation built on April 21, 2022, 1:49 a.m.