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: xydistmat
Function Description: xydistmat
Distance between two x-y coordinates, but accepts two sets of coordinates in a single matrix (4 columns ordered x1, y1, x2, y2). For use with apply.Function Arguments:
| Argument | Default Value |
|---|---|
Function Source:
xydistmat=function(pts)
return( xydist(pts[,1],pts[,2],pts[,3],pts[,4]) )
return( xydist(pts[,1],pts[,2],pts[,3],pts[,4]) )