encode_label: Encode labels with value

Description Usage Arguments Details Value

Description

Simply converting each values (character or factor) in a column to a specific number.

Usage

1
encode_label(.data, ..., start = 0)

Arguments

.data

A tbl.

...

One or more unquoted expressions separated by commas. You can treat variable names like they are positions. It supports [dplyr::select] comparable.

start

Integer, default 0. label starts.

Details

The mapped value start from 1 (not 0).

Value

An object of the same class as .data with "preprocessing-chain" attribution.


teramonagi/dpurifyr documentation built on May 29, 2019, 9:52 a.m.