Learn R Programming

sdsfun (version 0.8.0)

dummy_tbl: transforming a category tibble into the corresponding dummy variable tibble

Description

transforming a category tibble into the corresponding dummy variable tibble

Usage

dummy_tbl(tbl)

Value

A tibble

Arguments

tbl

A tibble or data.frame.

Examples

Run this code
a = tibble::tibble(x = 1:3,y = 4:6)
dummy_tbl(a)

Run the code above in your browser using DataLab