remove_missing_levels: remove_missing_levels

View source: R/remove_missing_levels.R

remove_missing_levelsR Documentation

remove_missing_levels

Description

Accounts for missing factor levels present only in test data but not in train data by setting values to NA

Usage

remove_missing_levels(fit, test_data)

Arguments

fit

fitted model on training data

test_data

data to make predictions for

Value

data.frame with matching factor levels to fitted model


lfpdroubi/appraiseR documentation built on April 14, 2024, 10:27 p.m.