dummy_coding: Dummy Coding

View source: R/dummy_coding.R

dummy_codingR 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)


psycCleaning documentation built on Nov. 5, 2023, 9:06 a.m.