weed_data: A function to extract the functional attributes of named...

View source: R/weed_data.R

weed_dataR Documentation

A function to extract the functional attributes of named species from the trait database.

Description

A function which extracts the functional attributes of named species trait_data. This function extracts the SLA, ARNNODE, LOGCANH, LOGCAND and VEGPROP of either four-three coded species names or Flora Europaea numbers. This function can also be used to extract the total list of Species and their 4_3 codes.

Usage

weed_data(x=NULL, trait="all", WFO=FALSE)

Arguments

x

The four-three species code, Flora Europaea number or World Flora Online number. If this is left blank a list of species, Flora Europaea numbers, WFO numbers and 4_3 codes for the entire 929 species will be returned. Note that Flora Europaea numbers must be numeric and if using WFO numbers, the WFO aurgument must be set to TRUE.

trait

The traits required. The default returns all traits, however individual traits can be returned by entering their names: SLA, ARNODE, LOGCAND,LOGCANH, VEGPROP

WFO

TRUE or FALSE depending on whether x is the World Flora online numbers (TRUE) or not (FALSE)

Value

FlEurNo

the Flora Europaea number

WFO_code

the World Flora Online number

species.code

the species name

Species_authority

the species authority

Species

the Flora Europaea number

SLA

mean specific leaf area (mm^2/mg)

ARNODE

Leaf area (mm^2) per node/leaf thickness (mm)

LOGCANH

maximum canopy height (mm) classified into a log scale (base2) bins

LOGCAND

maximum canopy diameter (mm) classified into a log scale (base2) bins

VEGPROP

vegetative propagation - 1 = yes 0 = no

lifehist

life history of the species - annual, biannual, perennial

Author(s)

Elizabeth Stroud

References

<ORA reference>

Examples

## Example data
species<-c("Chenopodium album" , "Anthemis cotula", "Brassica rapa ssp campestris",
"Raphanus raphanistrum", "Agrostemma githago" , "Poa annua" )
code<-c("chenalb", "anthcot", "brasrap","raphrap","agrogit", "poa_ann")
data<-as.data.frame(cbind(species, code))
## Usage
results<-weed_data(data$code)
four_threecodes<-weed_data()
vegprop_only<-weed_data(data$code, trait="VEGPROP")
WFO_only<- weed_data("wfo-000856381", WFO=TRUE)
Flora_EU<- weed_data(41967)

elizabethastroud/FIBS-R-Package documentation built on Sept. 26, 2024, 6:40 p.m.