Description Usage Arguments Value Author(s) Examples
View source: R/apply_freq_mappings.R
Uses output from map.freq.encoding to count how many times a value of a feature occurred in the training set and applies it to another dataset
1 | apply.freq.mappings(data, freq.mappings, progress = TRUE)
|
data |
[required | data.frame] Dataset containing features to apply mapping to |
freq.mappings |
[required | list] Output from function map.freq.encode |
progress |
[optional | logical | default=TRUE] Display a progress bar |
Data frame with frequency features with all other features
Xander Horn
1 2 | fm <- map.freq.encoding(data = iris)
new_iris <- apply.freq.mappings(data = iris, freq.mappings = fm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.