encode_count: Replace labels with their count in the data set

Description Usage Arguments Details Value

Description

Simply converting each values (character or factor) in a column to the count of each values

Usage

1
encode_count(.data, ...)

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.

Details

It can be sensitive to outliers. It might be a good strategy to add log-transformation

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.