wide_to_long | R Documentation |
wide_to_long
transform data.frame from wide to
long format
wide_to_long(df, column_with_data = names(df), column_fixed, geometry)
df |
data.frame with three column. |
column_with_data |
Character column with data |
column_fixed |
Character, column that will remain fixed |
geometry |
To return a sf |
long data.frame.
emis_hot_td
emis_cold_td
long_to_wide
Other helpers:
colplot()
,
dmonth()
,
to_latex()
## Not run:
data(net)
net <- sf::st_set_geometry(net, NULL)
df <- wide_to_long(df = net)
head(df)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.