powered by
wide_to_long transform data.frame from wide to long format
wide_to_long
wide_to_long(df, column_with_data = names(df), column_fixed, geometry)
long data.frame.
data.frame with three column.
Character column with data
Character, column that will remain fixed
To return a sf
emis_hot_td emis_cold_td long_to_wide
emis_hot_td
emis_cold_td
long_to_wide
Other helpers: colplot(), dmonth(), to_latex()
colplot()
dmonth()
to_latex()
if (FALSE) { data(net) net <- sf::st_set_geometry(net, NULL) df <- wide_to_long(df = net) head(df) }
Run the code above in your browser using DataLab