powered by
Wrapper function to apply species_phyto_convert() across a data.frame
species_to_mfg_df(phyto.df, flag = 1, mfgDbase = NA)
input data.frame with a new character column of MFG classifications and diagnostic information
Name of data.frame. Must have character fields named 'genus' and 'species'
Resolve ambiguous MFG: 1 = return(NA), 2 = manual selection
specify library of species to MFG associations.
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)
Run the code above in your browser using DataLab