This is a S3 generic.
gather_(data, key_col, value_col, gather_cols, na.rm = FALSE,
convert = FALSE, factor_key = FALSE)
A data frame
Strings giving names of key and value columns to create.
Character vector giving column names to be gathered into pair of key-value columns.
If TRUE
, will remove rows from output where the
value column in NA
.
If TRUE
will automatically run
type.convert
on the key column. This is useful if the column
names are actually numeric, integer, or logical.
If FALSE
, the default, the key values will be
stored as a character vector. If TRUE
, will be stored as a factor,
which preserves the original ordering of the columns.