Learn R Programming

spaa (version 0.2.2)

splist: species list used in function add.col()

Description

A species check list example to be used in add.col()

Usage

data(splist)

Arguments

Format

A data frame with 9 observations on the following 3 variables.
species
a factor with levels sp1 to sp8
genera
a factor with levels gen1 to gen6
family
a factor with levels fam1 to fam5

References

None

Examples

Run this code

data(splist)
data(testdata)
## add genera from dataframe B to dataframe A.
add.col(inputA = testdata, inputB = splist, add = "genera",
according = "species")
## add family from dataframe B to dataframe A.
add.col(inputA = testdata, inputB = splist, add = "family", 
according = "species")

Run the code above in your browser using DataLab