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/statistics.r

View File Source Download File No help file available

Function: midPoint

Function Description: midPoint

Midpoint of any vector.

Function Arguments:

ArgumentDefault Value

Function Source:

midPoint=function(x,na.rm=TRUE)
return(min(x)+0.5*diff(range(x,na.rm=na.rm)))