rbin_factor_create {rbin}R Documentation

Create dummy variables

Description

Create dummy variables for categorical data.

Usage

rbin_factor_create(data, predictor)

Arguments

data

A data.frame or tibble.

predictor

Variable for which dummy variables must be created.

Value

A tibble with dummy variables.

Examples

upper <- c("secondary", "tertiary")
out <- rbin_factor_combine(mbank, education, upper, "upper")
rbin_factor_create(out, education)


[Package rbin version 0.2.0 Index]