novel_value_summary {vtreat} | R Documentation |
Report new/novel appearances of character values.
Description
Report new/novel appearances of character values.
Usage
novel_value_summary(dframe, trackedValues)
Arguments
dframe |
Data frame to inspect. |
trackedValues |
optional named list mapping variables to know values, allows warnings upon novel level appearances (see |
Value
frame of novel occurrences
See Also
prepare.treatmentplan
, track_values
Examples
set.seed(23525)
zip <- c(NA, paste('z', 1:10, sep = "_"))
N <- 10
d <- data.frame(zip = sample(zip, N, replace=TRUE),
zip2 = sample(zip, N, replace=TRUE),
y = runif(N))
dSample <- d[1:5, , drop = FALSE]
trackedValues <- track_values(dSample, c("zip", "zip2"))
novel_value_summary(d, trackedValues)
[Package vtreat version 1.6.5 Index]