traits_to_csr_df {algaeClassify} | R Documentation |
Add CSR functional group classifications to a dataframe of phytoplankton species, based on surface to volume ratio and maximum linear dimension ranges proposed by Reynolds et al. 1988;2006
Description
Add CSR functional group classifications to a dataframe of phytoplankton species, based on surface to volume ratio and maximum linear dimension ranges proposed by Reynolds et al. 1988;2006
Usage
traits_to_csr_df(
df,
sav,
msv,
msv.source = "Reynolds 2006",
traitrange = algaeClassify::traitranges
)
Arguments
df |
name of dataframe |
sav |
character string with name of column that contains surface to volume ratio values |
msv |
character string with name of column that contains maximum linear dimension * surface to volume ratio values |
msv.source |
character string with reference source for distinguishing criteria |
traitrange |
data frame with trait criteria for c,s,r groups. The included table can be replaced with user-defined criteria if desired. Measurements are: Surface area/volume ratio (sav), maximum linear dimension (mld) and mld*sav (msv). |
Value
a character string with one of 5 return values: C,CR,S,SR, or R
Examples
csr.df<-data.frame(msv=10,sav=1)
csr.df$CSR<-traits_to_csr_df(csr.df,'msv','sav')
print(csr.df)
[Package algaeClassify version 2.0.2 Index]