Paste together multiple columns of a data frame or data.table with a
separator, used internally to construct unit-ID strings.
Usage
merge_columns_c(df, cols, sep = "::")
Arguments
- df
A data.frame or data.table
- cols
Character vector of column names to paste together
- sep
Separator string (default "::")
Value
A character vector of length nrow(df)