internal {splusTimeDate} | R Documentation |
Align Functions for Package Developers
Description
Time and number alignment functions for package developers.
Usage
.numalign(origpos, newpos, how, error.how, matchtol = 0)
.timealign(origpos, newpos, how, error.how, matchtol = 0)
Arguments
origpos |
a vector of original position values. | ||||||||||||
newpos |
a vector of new positions to align or interpolate it to. | ||||||||||||
how |
specifies how to treat unmatched positions. Must be one of the following:
| ||||||||||||
error.how |
specifies available actions when an out of bounds error occurs. (Such an error can occur
when
| ||||||||||||
matchtol |
the tolerance for matching positions. |
Value
an object like pos
.
Examples
.numalign(1:3, 2, how=NA, error=NA)
.timealign(5:7, 8, how=NA, error=NA)
[Package splusTimeDate version 2.5.8 Index]