encode_ordinal: Encode ordinal

View source: R/utils.R

encode_ordinalR Documentation

Encode ordinal

Description

to integer values

Usage

encode_ordinal(x, order = sort(unique(x)))

Arguments

x

vector to encode

order

vector with x elements in order of encoding

Value

numeric vector with encoded values


dokato/natML documentation built on Sept. 12, 2022, 6:04 a.m.