unfold | R Documentation |
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.
unfold(data, ...)
## S3 method for class 'spatial_cubble_df'
unfold(data, ...)
## S3 method for class 'temporal_cubble_df'
unfold(data, ...)
data |
a long cubble object |
... |
spatial variables to move into the long form, support tidyselect syntax |
a cubble object in the long form
climate_mel |> face_temporal() |> unfold(long, lat)
climate_mel |> face_temporal() |> unfold(dplyr::starts_with("l"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.