encode: Encode data.frame of factors using One-Hot Encoding

Description Usage Arguments Value Author(s)

View source: R/encode.R

Description

Encode data.frame of factors using One-Hot Encoding

Usage

1
encode(data, sep = ": ")

Arguments

data

a data.frame where all components are factors.

sep

a character defining the separator used for naming the columns of encoded data.

Value

a matrix with encode factors.

Author(s)

David Senhora Navega


dsnavega/icmr documentation built on Oct. 25, 2021, 4:14 p.m.