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

This is an old version of pts.to.interceptslope, returns slope than intercept of a line given two points. The alternate function, pts.to.interceptslope, returns intercept then slope, which is more standard. This is 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]))
#}