species_to_mfg_df {algaeClassify} | R Documentation |
Wrapper function to apply species_phyto_convert() across a data.frame
Description
Wrapper function to apply species_phyto_convert() across a data.frame
Usage
species_to_mfg_df(phyto.df, flag = 1, mfgDbase = NA)
Arguments
phyto.df |
Name of data.frame. Must have character fields named 'genus' and 'species' |
flag |
Resolve ambiguous MFG: 1 = return(NA), 2 = manual selection |
mfgDbase |
specify library of species to MFG associations. |
Value
input data.frame with a new character column of MFG classifications and diagnostic information
Examples
data(lakegeneva)
#example dataset with 50 rows
new.lakegeneva <- genus_species_extract(lakegeneva,'phyto_name')
new.lakegeneva <- species_to_mfg_df(new.lakegeneva)
head(new.lakegeneva)
[Package algaeClassify version 2.0.2 Index]