traits_to_csr_df: Add CSR functional group classifications to a dataframe of...

Description Usage Arguments Value Examples

View source: R/traits_to_csr_df.r

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

1
2
traits_to_csr_df(df, sav, msv, msv.source = "Reynolds 2006",
  traitrange = 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

1
2
3
4
5
csr.df<-data.frame(msv=10,sav=1)

csr.df$CSR<-traits_to_csr_df(csr.df,'msv','sav')

print(csr.df)

algaeClassify documentation built on Sept. 15, 2019, 1:03 a.m.