Description Usage Arguments Details Examples
Latent positions may be queried using arbitrary date-time values. The only method (for now) is 'linear', but default should be 'geodesic'. In time we include more methods to match the GeoPandas implementation.
1 | track_query(x, y, date = NULL, query, type = "linear")
|
x |
longitude |
y |
latitude |
date |
date-time in POSIXct (or can be ignore, for relative index-time) |
query |
required argument, date-time values to return inferred x, y positions for |
type |
linear, geodesic, rhumb, forward, backward, nearest (also need open/closed intervals) |
If date
is not included, time itself is treated as the obvious index on n-locations so
simple relative time, and query
is expected to match this.
We use group_modify to keep the id groups:
trips0 %>% group_by(id) %>% group_modify(~track_query(.x$x, .x$y, query = c(4.5, 6.7)))
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.