dummify: Create dummy variables within a tibble

View source: R/echoice2.R

dummifyR Documentation

Create dummy variables within a tibble

Description

Create dummy variables within a tibble

Usage

dummify(dat, sel)

Arguments

dat

A tibble with the data.

sel

A character vector with the name(s) of the variables to be dummied.

Value

tibble with dummy variables

Examples

mytest=data.frame(A=factor(c('a','a','b','c','c')), B=1:5)
dummify(mytest,"A")


echoice2 documentation built on Nov. 20, 2023, 9:06 a.m.