train_discrete: Train (update) a discrete scale

View source: R/scale-discrete.R

train_discreteR Documentation

Train (update) a discrete scale

Description

Train (update) a discrete scale

Usage

train_discrete(new, existing = NULL, drop = FALSE, na.rm = FALSE, fct = NA)

Arguments

new

New data to add to scale

existing

Optional existing scale to update

drop

TRUE, will drop factor levels not associated with data

na.rm

If TRUE, will remove missing values

fct

Treat existing as if it came from a factor (ie. don't sort the range)


scales documentation built on July 4, 2024, 1:11 a.m.