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: StringToVect

Function Description: StringToVect

Converts a character string into a vector of individual characters.

Function Arguments:

ArgumentDefault Value
s

Sample Usage:

StringToVect('anystring')


Function Source:

StringToVect=function(s)
{
result=character()
len=nchar(s)
for(i in 1:len) result[i]=substr(s,i,i)
return(result)
}