updateTraits: Checks traits table for column names and adds data from a new...

View source: R/Building.R

updateTraitsR Documentation

Checks traits table for column names and adds data from a new table

Description

Checks traits table for column names and adds data from a new table

Usage

updateTraits(traits, traitsNew, deleteReplicates = TRUE, fill = TRUE)

Arguments

traits

Existing trait table

traitsNew

Table containing new trait data

deleteReplicates

If set to TRUE, retains the first mention of a species, then removes all following mentions

fill

If set to TRUE, fills empty numeric values with mean values of the genus

Value

table

Examples

Traits <- ausTraitTable(version = "3.0.2", path = "data/austraits")
TraitsNew <- read.csv("Traits.csv")
Tr <- updateTraits(traits = Traits, traitsNew = TraitsNew, deleteReplicates = TRUE, fill = TRUE)


pzylstra/frame_r documentation built on Nov. 12, 2023, 1:55 a.m.