onehot_encode: A One-Hot Encoder

Description Usage Arguments Value

Description

This functions allows you to transform a vector into a One-Hot Encoded matrix. Useful for nominal input data and tensorflow neural network outputs.

Usage

1
onehot_encode(factor_vector, name)

Arguments

factor_vector

Vector containing the factors you want to one-hot encode.

name

Name of the coloumns in the output matrix.

Value

one-hot_matrix

Dynge/r_dynge documentation built on July 1, 2019, 11:21 p.m.