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/geometry.r

View File Source Download File No help file available

Function: are.ptsinside

Function Description: are.ptsinside

Checks many points (dataframe pt with x and y) against a single quadrat whose corners are given by as xlo, ylo, xhi, yhi. It returns a logical vector, TRUE for the points inside. This is same as insideRectange, but accepting input as a matrix pts and a single vector of the four corners of the rectange.

Function Arguments:

ArgumentDefault Value
pts
coord

Function Source:

are.ptsinside=function(pts,coord)
{
return(insideRectange(x=pts[,1],y=pts[,2],xrange=coord[,c(1,3)],yrange=coord[,c(2,4)]))
}