| CTFS.utilities {CTFS} | R Documentation |
Overview of Functions that are CTFS Utilities
Description
Provides an overview of a variety of functions that perform tasks
associated with other CTFS functions. Only those that are
appropriate to use alone are listed here. Utilities that are only
called by other functions are found in CTFS-internal.
Details
CTFS UTILITIES
1. Functions for Miscellaneous Computations
find.climitsComputes 95% CI for a Single Annual Mortality
Rate.
fill.dimensionFills all the dimensions of a 2 dimensional array.
fill.1dimensionFills all the dimensions of a 1 dimensional array.
rndown5Rounds down DBH where measurement was less
precise than 1 mm.
trim.growthRemoves extreme values of growth using user
defined limits.
unwind.matrixTurns a matrix into a vector,
“unwinding” it by columns.
xydistDistance between x,y coordinates.
xydistvectDistance between vector of x,y
coordinates, x as first element, y as second. Used with
apply.
2. Functions for Converting Dates
tojulianConverts Calendar Dates to Julian Dates and Back.
fromjulianConverts Calendar Dates to Julian Dates and Back.
3. Dunctions for Creating Grouping Variables for Trees
see link{CTFS.groupcats}
sep.quadinfoCreates a Vector of Quadrate
Characteristics for each Tree in a Dataset.
sep.sppinfoCreates a Vector of Species
Characteristics for each Tree in a Dataset.
sep.dbhCreates a Vector of DBH Classes for
each Tree in a Dataset.
4. Functions for Manipulating Quadrates and X, Y Coordinates
see CTFS.quadfunctions
rowcol.to.indexConverts a Row and Column to a Quadrate Number
index.to.rowcolConverts a Quadrate Number (Indext) to Row and Column Numbers
gxgy.to.indexConverts GX GY Coordinates to a Quadrate Number
index.to.gxgyConverts a Quadrate Number to GX GY Coordinates
gxgy.to.rowcolConverts a GX GY Coordinates to Row and Column Numbers
gxgy.to.hectindexConverts GX GY Coordinates to a Hectare Number
5. Functions for Reading, Writing and Converting CTFS Data Files
see CTFS.readwrite
sep.dataRe-structures a dataframe into a
list of dataframes by values of a Column in the dataframe using a
variable in the initial dataframe. Replacement for:
splitdata.
sep.vct.dataRe-structures a dataframe
into a list of dataframes by values of a Column in the dataframe
using a vector of a variable not in the initial dataframe.
Replacement for: splitdata.
mergecensusMerges two Censuses into one
dataframe and sets the value of status.
create.statusSets the value of status
for a single census dataset.
texttordataCreates CTFS R dataframe from any tab delimited text file.
sep.speciesSeparate One or More Dataframes of Tree Records from a List.
If a single species name is provided, a data frame of the tree records
of that species is returned. This is the same as load.species.
If a vector of species names is provided, then a list of the
dataframes of those species is returned.
load.speciesSeparate One or More Dataframes of Tree Records from a List.
A more limited function than sep.species. The same effect can be
achieved with siteyear.spp$sppname where siteyear.spp is a
list created using sep.data, eg. tst.bci90.spp
and sppname is one of the list names.
readelevdataRead a Text or RData dataframe and
Make a matrix, Specifically for Elevation Data.
6. Functions for Organizing Results from other Runctions
see CTFS.readwrite
assemble.demographyReformat the Output from
Demographic Functions from list to dataframe.
assemble.table.eachReformat the Output from
Demographic Functions from list to dataframe.
Note
For developers: The date conversion, quad and functions are found in
“utilities.R”. The read and write and creating groups functions are found in
“readandwrite.R”.
Author(s)
Rick Condit, Suzanne Lao and Pamela Hall
See Also
CTFS.quadfunctions,
CTFS.readwrite, CTFS.groupcats
[Package
CTFS version 1.00
Index]