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.
|View File Source||Download File||No help file available|
Function Description: perpendicular.distanceDistance from a point to a line (so it's the perpendicular distance); m and b are slope and intercept; x and y are coordinates. If both b,m and x,y are vectors, they must all be same length. Note check for infinite slope, meaning that the intercept b is the x-intercept.
b: y-intercept m: line slope