powered by
Gets the keys that have multiple values associated with them. The first field in the table is the key, the rest of fields are the values.
multiple_value_key(tb, col_as_vector = NULL)
A tibble.
tibble
A string, name of the column to include a vector of values.
If a name is indicated in the col_as_vector parameter, it includes a column with the data in vector form to be used in other functions.
col_as_vector
tb <- unique(ft[, c('WEEK', 'Week Ending Date')]) mvk <- multiple_value_key(tb)
Run the code above in your browser using DataLab