Interpolate missing values in a trajectory.
kalman(df, warn = TRUE)
df | a dataframe containing columns x, y, date representing relocations in space and time. |
---|---|
warn | logical, should warnings be issued if interpolation is above 5%? |
a dataframe with additional binary column real
flagging those points whose positions were interpolated.
The replacement points are generated using a structural time series model fitted by maximum likelihood.