extend_single_listcol: Unnest a List Column

View source: R/helpers.R

extend_single_listcolR Documentation

Unnest a List Column

Description

'Open up list columns containing multiple choice responses by creating a column for each option

Usage

extend_single_listcol(data, var, chr)

Arguments

data

The data frame

var

The variable to be expanded

chr

A character vector, which is the label of the value and which will also be used to develop a new name for the column

Value

A modified data frame


BroVic/raampGBV documentation built on Oct. 7, 2022, 11:06 p.m.