Rolling Summary Statistics

rolling_stats(df, n_roll = NULL)

Arguments

df

a dataframe containing columns "x", "y", and "date

n_roll

numeric, number of fixes (e.g. width of the window) over which to calculate rolling statistics. If NULL, the default is to roll over 3 hours for fix-rates of 1 hour or less, and over 6 hours for fix rates occuring at intervals greater than 1 hour. If your fix rate is every 4 hours or greater and n_roll is not set, the function will warn you to set n_roll.

Details

some detailed discussion of how auto and cross correlation are calculated and na handling

See also

Examples

roll <- rolling_stats(AG195)