Learn R Programming

junco (version 0.1.2)

make_combo_splitfun: Split Function Helper

Description

A function which aids the construction for users to create their own split function for combined columns.

Usage

make_combo_splitfun(nm, label = nm, levels = NULL, rm_other_facets = TRUE)

Value

Function usable directly as a split function.

Arguments

nm

(character)
Name/virtual 'value' for the new facet.

label

(character)
Label for the new facet.

levels

(character or NULL)
The levels to combine into the new facet, or NULL, indicating the facet should include all incoming data.

rm_other_facets

(logical)
Should facets other than the newly created one be removed. Defaults to TRUE.

Examples

Run this code
aesevall_spf <- make_combo_splitfun(nm = "AESEV_ALL", label = "Any AE", levels = NULL)

Run the code above in your browser using DataLab