expand_df: Split a column into multiple columns.

Description Usage Arguments Value

View source: R/helpers.R

Description

Split a column into multiple columns.

Usage

1
expand_df(.data, .key_col, .expand_vec)

Arguments

.data

a dataframe

.key_col

a quoted column name that can be found in .data, which will be used to join the expanded data frame back to the original data frame.

.expand_vec

a vector of unique values that will be used to expand the data frame.

Value

A data frame.


BWAM/stayCALM documentation built on May 21, 2020, 3:24 p.m.