Learn R Programming

scales (version 1.3.0)

train_discrete: 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)