Interpolate missing values in a trajectory.

kalman(df, warn = TRUE)

Arguments

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%?

Value

a dataframe with additional binary column real flagging those points whose positions were interpolated.

Details

The replacement points are generated using a structural time series model fitted by maximum likelihood.

See also