Learn R Programming

rolap (version 2.5.1)

multiple_value_key: Multiple value key

Description

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.

Usage

multiple_value_key(tb, col_as_vector = NULL)

Value

A tibble.

Arguments

tb

A tibble.

col_as_vector

A string, name of the column to include a vector of values.

Details

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.

Examples

Run this code

tb <- unique(ft[, c('WEEK', 'Week Ending Date')])
mvk <- multiple_value_key(tb)

Run the code above in your browser using DataLab