dummy_coding {psycCleaning}R Documentation

Dummy Coding

Description

Create dummy-coded columns, supporting tidyselect syntax to process multiple columns simultaneously.

Usage

dummy_coding(data, cols)

Arguments

data

data.frame object

cols

Columns that need to be dummy-coded See 'dplyr::dplyr_tidy_select' for available options.

Value

An object of the same type as .data. The output has the following properties: 1. Columns from .data will be preserved. 2. Columns that are dummy-coded.

Examples

dummy_coding(iris,Species)


[Package psycCleaning version 0.1.1 Index]