Topic: Utilities

Topic Description:

Basic R utilities used in many packages and functions, such as date and string manipulations, statistical distributions, geometry of lines and distances. The R package date is required for the two data functions.



File: utilities/utilitiesCTFS.r

View File Source Download File No help file available

Function: load.species

Function Description: load.species

A function for extracting a single species' dataframe from the large spp dataset (list of dataframes, one per species). The split data file must come as a name, that is in quote marks.

Function Arguments:

ArgumentDefault Value
spname
sppdatafile

Function Source:

load.species=function(spname,sppdatafile)
{
index=which(names(sppdatafile)==spname)
return(sppdatafile[[index]])
}