spp_levels {halk} | R Documentation |
Check for species in columns and/or levels and add to levels if present
Description
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.
Usage
is_spp_in_levels(levels)
is_spp_in_data(data)
spp_level(levels)
rm_spp_level(levels)
add_spp_level(data, levels)
Arguments
levels |
The levels argument passed from |
data |
A data.frame with length-at-age data |
Value
A character vector of levels possibly with 'spp' or 'species' added
[Package halk version 0.0.5 Index]