Report new/novel appearances of character values.

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 track_values)

Value

frame of novel occurrences

See also

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)
#> row_index column value #> 1 6 zip z_10 #> 2 7 zip z_1 #> 3 6 zip2 z_10 #> 4 8 zip2 z_1