dichotomize {nuggets}R Documentation

Create dummy columns from logicals or factors in a data frame

Description

Create dummy logical columns from selected columns of the data frame. Dummy columns may be created for logical or factor columns as follows:

Usage

dichotomize(.data, what = everything(), ..., .keep = FALSE)

Arguments

.data

a data frame to be processed

what

a tidyselect expression (see tidyselect syntax) selecting the columns to be processed

...

further tidyselect expressions for selecting the columns to be processed

.keep

whether to keep the original columns. If FALSE, the original columns are removed from the result.

Details

Value

A tibble with selected columns replaced with dummy columns.

Author(s)

Michal Burda


[Package nuggets version 1.0.2 Index]