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 (vectors) of points. Note check for infinite slope, meaning that the intercept b is the x-intercept.
b: y-intercept m: line slope