dummies_annotate: dummies_annotate

View source: R/dummies_annotate.R

dummies_annotateR Documentation

dummies_annotate

Description

Returns the annotation with additional dummy variables for specified variables. Requires a data.frame or matrix object of name 'annotation' in the global environment. The annotation object must be specified using the column names "name", "pname", "unit", "short_pname", and "comment". This function grabs the "pname" of the .input_variables to create the dummy names.

Usage

dummies_annotate(.data, .input_variables)

Arguments

.data

A data.frame or tibble.

.input_variables

A character vector containing variables that should be recoded as dummy variables in the annotation.

Value

The annotation with additional dummy variables for all .input_variables.

Examples

-

janbrederecke/prepareD documentation built on Oct. 26, 2022, 8:06 p.m.