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: slope.intercept.frompts

Function Description: slope.intercept.frompts

Old version of pts.to.interceptslope, returns slope than intercept. Opposite is more standard. Kept for compatibility with old functions.

Function Arguments:

ArgumentDefault Value
pt1
pt2

Function Source:

slope.intercept.frompts=function(pt1,pt2)
{
line=pts.to.interceptslope(pt1,pt2)

return(c(line[2:1]))
}