a vector of new positions to align or interpolate it to.
how
specifies how to treat unmatched positions. Must be one of the following:
"NA"
Insert a row of NA.
"drop"
Drop that position entirely.
"nearest"
Use the row with the nearest position.
"before"
Use the data from the row whose position
is just before the unmatched position.
"after"
Use the data from the row whose position is
just after the unmatched position.
"interp"
Interpolate linearly between "before" and "after".
error.how
specifies available actions when an out of bounds error occurs. (Such an error can occur
when how is "before", "after", or "interp"). Must be one of
the following: