make_vector_column: Combine a number of columns into a new vector column

View source: R/basics.R

make_vector_columnR Documentation

Combine a number of columns into a new vector column

Description

Combine a number of columns into a new column in which each cell is the vector of values from the original columns.

Usage

make_vector_column(data, cols, vector_col, .keep = "all")

Arguments

data

'tibble' or 'data.frame'.

cols

Vector of characters with names of variables to combine.

vector_col

Name of new column of vectors.

.keep

See dplyr::mutate.

Value

Same as data.


hlplab/MVBeliefUpdatr documentation built on March 29, 2025, 10:42 p.m.