character naming time index variable in both data sets
interp
method of interpolation.
win
window for "ma0" interpolation method.
constCol
columns in data for which the user would like
to be constant, such as id or sex.
Value
Merged data.frame with new column from stopData. Missing values
in the stopping variable will be interpolated
Details
Simply merges the data frames and interpolates based on the chosen
method. Both data frames have to use the same name for the time
variable. Also contains stopType which = "o" if observed or "p"
for interpolated.
The merged data is truncated to the first and last time in the
location data set. Missing values in the stopping variable data set
can be interpolated by replacing them with zeros (full movement) or
first replacing with zeros then using a moving average to smooth the
data. Only the missing values are then replace with this smoothed
data. This allows a smooth transition to full movement.