Gather a data frame
gather_data(data, variable_name = "item", numeric_ids = c("^id"),
use_logical_keys = TRUE, use_factor_keys = TRUE,
unite_columns = NULL, separate_columns = NULL,
use_date_keys = FALSE, remove_na = TRUE)
a tibble
variable column name
vector of numeric ids
if TRUE
uses logicals as keys
if TRUE
uses factors as a key
if not NULL
list
new_column : new column name
column_1 : first column to unite
column_2 : second column to unite
sep : separator
if not NULL
list
column : column to separate
new_column_1 : new_column 1
new_column_2 : new_column 2
sep : separator
if TRUE
uses dates as a key
removes NA columns
if not NULL
list
new_column : new column name
column_1 : first column to unite
column_2 : second column to unite
sep : separator
if not NULL
list
column : column to separate
new_column_1 : new_column 1
new_column_2 : new_column 2
sep : separator
a tibble