wide_to_long: Transform data.frame from wide to long format

View source: R/wide_to_long.R

wide_to_longR Documentation

Transform data.frame from wide to long format

Description

wide_to_long transform data.frame from wide to long format

Usage

wide_to_long(df, column_with_data = names(df), column_fixed, geometry)

Arguments

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

Value

long data.frame.

See Also

emis_hot_td emis_cold_td long_to_wide

Other helpers: colplot(), dmonth(), to_latex()

Examples

## Not run: 
data(net)
net <- sf::st_set_geometry(net, NULL)
df <- wide_to_long(df = net)
head(df)

## End(Not run)

vein documentation built on May 29, 2024, 7:20 a.m.