species_to_mfg_df: Wrapper function to apply species_phyto_convert() across a...

View source: R/species_to_mfg_df.r

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

algaeClassify documentation built on Nov. 22, 2023, 1:08 a.m.