| sep.species {CTFS} | R Documentation |
Provides access to a single or groups of dataframes in a
list where each dataframe is the tree records of a single
species. This list data file is generated with sep.data. The
example data file is tst.bci90.spp.
sep.species(spname, census.spp) load.species(spname, census.spp)
spname |
species names in quotes, either a single name or a vector of names |
census.spp |
the list structured dataset where each species is a
dataframe, eg. tst.bci90.spp |
These functions are similar to each other. load.species only
works with one species name at a time and returns a data frame.
sep.species returns a list that is a subset of data frames in census.spp.
For sep.species, if spname is a single name then a data frame of tree records is
returned. If spname is a vector of names, then a list of
data frames is returned, but only those data frames of the species names
in spname.
For load.species, spname can only be a single value and a
data frame is always returned.
Rick Condit and Pamela Hall
## Not run:
socrex <- load.species("socrex",tst.bci95.spp)
socrex[1:4,]
socrex <- sep.species("socrex",tst.bci95.spp)
socrex[1:4,]
Using sep.species or load.species with one species name is the same as
socrex <- tst.bci90.spp$socrex
socrex[1:4,]
spnames <- c("alsebl","socrex")
alsebl.socrex <- sep.species(spnames,tst.bci95.spp)
is.list(alsebl.socrex)
str(alsebl.socrex)
## End(Not run)