unfold {cubble} | R Documentation |
Augment spatial component into the long (temporal) form
Description
Some spatio-temporal transformation, i.e. glyph maps, uses both spatial
and temporal variables. unfold()
allows you to temporarily moves spatial
variables into the long form for these transformations.
Usage
unfold(data, ...)
## S3 method for class 'spatial_cubble_df'
unfold(data, ...)
## S3 method for class 'temporal_cubble_df'
unfold(data, ...)
Arguments
data |
a long cubble object |
... |
spatial variables to move into the long form, support tidyselect syntax |
Value
a cubble object in the long form
Examples
climate_mel |> face_temporal() |> unfold(long, lat)
climate_mel |> face_temporal() |> unfold(dplyr::starts_with("l"))
[Package cubble version 0.3.2 Index]