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: find.nonNA
Function Description: find.nonNA
Returns the first value of a vector x which is not NAFunction Arguments:
| Argument | Default Value |
|---|---|
| x |
Function Source:
find.nonNA=function(x)
{
good=which(!is.na(x))[1]
return(x[good])
}
{
good=which(!is.na(x))[1]
return(x[good])
}