# NOT RUN {
## example: iris dataset
## load the forestRK package
library(forestRK)
# covariates of training data set
x.train <- x.organizer(iris[,1:4], encoding = "num")[c(1:25,51:75,101:125),]
y.train <- y.organizer(iris[c(1:25,51:75,101:125),5])$y.new
# combine the covariates x with class types y
b <- data.frame(cbind(x.train, y.train))
## bstrp function example
bootstrap.sample <- bstrap(dat = b, nbags = 20, samp.size = 30)
# }
Run the code above in your browser using DataLab