pivot_longer_by_date: Pivots date column names into one colum

Description Usage Arguments Value

View source: R/preprocess-data.R

Description

Pivots date column names into one colum

Usage

1
pivot_longer_by_date(data, date_format = "\\d+\\/\\d+\\/\\d+")

Arguments

data

A dataframe with data columns

date_format

A regular expression to detect the date columns (default value matches DD/MM/YYY); works with dplyr's 'matches' function to select date columns)

Value

A dataframe in a long format (containing a new date column)


jnshsrs/corona documentation built on April 9, 2020, 11:10 p.m.