dummyvar: Dummy-code a categorical variable

View source: R/echoice2.R

dummyvarR Documentation

Dummy-code a categorical variable

Description

Dummy-code a categorical variable

Usage

dummyvar(data)

Arguments

data

one column of categorical data to be dummy-coded

Value

tibble with dummy variables

Examples

mytest=data.frame(attribute=factor(c('a','a','b','c','c')))
dummyvar(mytest)

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