dummify {echoice2}R 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")


[Package echoice2 version 0.2.4 Index]