Nothing
## Tests for character data
library(blockForest)
context("blockForest_char")
## Initialize random forests
dat <- iris
dat$Test <- paste0("AA",as.character(1:nrow(dat)))
## Tests
test_that("no warning or error if character vector in data", {
expect_silent(rf <- blockForest(Species ~ ., dat,
num.trees = 5, write.forest = TRUE))
expect_silent(predict(rf, dat))
})
test_that("no warning or error if character vector in data, alternative interface", {
expect_silent(rf <- blockForest(dependent.variable.name = "Species", data = dat,
num.trees = 5, write.forest = TRUE))
expect_silent(predict(rf, dat))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.