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

View File Source Download File No help file available

Function: which.vmatch

Function Description: which.vmatch

Finds which subsequent element of a vector matches the first element.

Function Arguments:

ArgumentDefault Value
v

Function Source:

which.vmatch=function(v)
{
v2=v[-1]
return(match(v[1],v2))
}