CTFS.internal {CTFS}R Documentation

internal CTFS functions

Description

Internal CTFS functions that are called from within other functions.

Usage

borderdist(coord,plotdim)
fill.dimension(dataarray,class1,class2,fill=0)
fill.1dimension(dataarray,class1,fill=0)
fill.distclasses(dataarray,distclasses)
unidentified.species(spnames,unidenstr=c("**","UNID","unid","UNIDEN","uniden"))
unwind.matrix(matrix.in)
rndown5(s)
xydist(x1,y1,x2,y2)
xydistvect(pt1,pt2)
setsize(n, s) 
quadslope(cornerelev,gridsize=20)
calcslope(z, gridsize=20)

Details

These are not usually called by the user and are not documented individually.

borderdist
computes the distance to the nearest plot border for a given pair of coordinates

fill.dimension
check values and/or fills a 2 dimensional array after the use of tapplywhich eliminates dimension values if there is no content for them

fill.1dimension
check values and/or fills a 1 dimensional array after the use tapply which eliminates dimension values if there is no content for them

fill.distclases
check values and/or fills a 1 dimensional array after the use tapply which eliminates dimension values if there is no content for them. This is specific for neighborhood calculations.

unidentified.species
creates a vector that indicates whether a tree belongs to an unidentifed species. unidenstr contains the possible codes for unidentified species at the sites.

unwind.matrix
returns a vector that is the contents of a matrix "unwound" column by column

rndown5
rounds by taking the floor of dbh / 5

xydist
distance between x,y coordinates

xydistvect
distance between vector of x,y coordinates, x as first element, y as second. Used with apply

setsize
sets point sizes for plotting location of trees in map

quadslope
calculates the slope of a quadrate and called from meantopo.quad

calcslope
calculates the slope of a quadrate and called from quadslope

Note

For developers: The CTFS internal utility functions are found in a file approximately named: utilties.versionnumber.R. Some may be located in other files because they are used with those functions only.

Author(s)

Rick Condit, Suzanne Lao, Pamela Hall

See Also

CTFS.quadfunctions,CTFS.utilities, CTFS.readwrite, CTFS.groupcats


[Package CTFS version 1.00 Index]