mr_splitter: Multiple Response Splitter

View source: R/mr_splitter.R

mr_splitterR Documentation

Multiple Response Splitter

Description

This function splits a variable containing multiple response in a dummy data.frame, to be used with cbind.

Usage

mr_splitter(x, spl_char = "|", categs = NULL, add_count = FALSE)

Arguments

x

variable to be splitted

spl_char

splitting character

categs

character vector listing the categories to be considered and/or they order; if NULL (default) all categories given in x will be used (in alphabetic order)

add_count

add a variable for considered and/or they order; if NULL (default) all categories given in x will be used (in alphabetic order)


lbraglia/lbmisc documentation built on April 29, 2024, 11:27 a.m.