Description Usage Arguments Details Value
View source: R/s5_interpolate_animate.R
Takes a *_paths object and generates regularly-spaced points along the path.
1 | regular_points(paths, Delta_t)
|
paths |
An object of class |
Delta_t |
The timestep to use for interpolation. The number of interpolated points will be approximately (total time)/Delta_t. See details below. |
This function returns points that are regularly placed in
space, even though the user provides a time argument
(Delta_t). When the input locations are regularly spaced in time,
the output locations will be regularly spaced in both
space and time. This will already be the case if the user has
decided to use COAs to represent the locations.
The number of points returned is reported in the output data.frame
in the column $n_interp. We determine this number by counting the
length of the sequence from the start time to the end time of the
track for each individual, with the by argument being
Delta_t. I.e.:
1 2 3 4 5 |
Therefore, Delta_t can be any value that can be accepted by
the by argument of seq.POSIXt().
Returns an object with S3 Class reg_points. Object is also
of class sf, tbl_df, tbl, and data.frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.