spp_levels {halk} | R Documentation |
These helper functions just check to see if a species column exists in the data (designated as 'spp' or 'species'). If one of those columns exists, but the column name is not in the levels argument it will get added to levels.
is_spp_in_levels(levels)
is_spp_in_data(data)
spp_level(levels)
rm_spp_level(levels)
add_spp_level(data, levels)
levels |
The levels argument passed from |
data |
A data.frame with length-at-age data |
A character vector of levels possibly with 'spp' or 'species' added