getTraits: Get TreeCo Species Traits

View source: R/getTraits.R

getTraitsR Documentation

Get TreeCo Species Traits

Description

To be included

Usage

getTraits(
  tree.data = NULL,
  spp.name = "Name_submitted",
  trait.cons = NULL,
  trait.sp = NULL,
  trait.gen = NULL,
  trait.fam = NULL,
  generaliza = list(c("wsg_gcm3", "LeafType", "SeedMass_g"), c("wsg_gcm3")),
  add.spp = NULL,
  rm.colunas = NULL,
  inc.colunas = NULL
)

Arguments

tree.data

a data frame with the species names

spp.name

character. The name of the column containing the species names. Defaults to "Name_submitted"

trait.cons

a data frame with the extra, consensual species information

trait.sp

data frame with the species trait information averaged by species

trait.gen

data frame with the species trait information averaged by genus

trait.fam

data frame with the species trait information averaged by family

generaliza

a list containing the vectors of traits which can be generalized at genera and family levels, respectively. Defaults to list(c("wsg_gcm3","LeafType","SeedMass_g"),c("wsg_gcm3"))

add.spp

data frame with species to be added to the trait retrieval

rm.colunas

vector of extra columns names that will be removed from the original dataframe. Default is NULL but a vector is provided with the most commonly removed columns

inc.colunas

vector of columns names that should be included contained in the vector of often-excluded columns. Default is NULL (i.e. keep the vector of often-excluded columns the same)

Details

To be included

Value

To be described

Author(s)

Renato A. F. de Lima


LimaRAF/TreeCo documentation built on Sept. 25, 2024, 12:41 p.m.