# NOT RUN {
# Build a train and a test
data("messy_adult")
data("adult")
train <- messy_adult
test <- adult # So test will have missing columns
# Prepare them
train <- prepareSet(train, verbose = FALSE, key = "country")
test <- prepareSet(test, verbose = FALSE, key = "country")
# Give them the same shape
test <- sameShape(test, train)
# As one can see in log, a lot of small change had to be done.
# This is an extreme case but you get the idea.
# }
# NOT RUN {
# "##NOT RUN:" mean that this example hasn't been run on CRAN since its long. But you can run it!
# }
Run the code above in your browser using DataLab