View source: R/print.gg_minimal_depth.R
print.gg_minimal_depth | R Documentation |
gg_minimal_depth
object.Print a gg_minimal_depth
object.
## S3 method for class 'gg_minimal_depth' print(x, ...)
x |
a |
... |
optional arguments |
## Not run: ## ------------------------------------------------------------ ## classification example ## ------------------------------------------------------------ ## You can build a randomForest rfsrc_iris <- rfsrc(Species ~ ., data = iris) varsel_iris <- var.select(rfsrc_iris) # Get a data.frame containing minimaldepth measures gg_dta <- gg_minimal_depth(varsel_iris) print(gg_dta) ## ------------------------------------------------------------ ## regression example ## ------------------------------------------------------------ # ... or load a cached randomForestSRC object rfsrc_airq <- rfsrc(Ozone ~ ., data = airquality, na.action = "na.impute") varsel_airq <- var.select(rfsrc_airq) # Get a data.frame containing minimaldepth measures gg_dta<- gg_minimal_depth(varsel_airq) print(gg_dta) # To nicely print a rfsrc::var.select output... print(varsel_airq) # ... or load a cached randomForestSRC object data(Boston, package="MASS") rfsrc_boston <- randomForestSRC::rfsrc(medv~., Boston) varsel_boston <- var.select(rfsrc_boston) # Get a data.frame containing minimaldepth measures gg_dta<- gg_minimal_depth(varsel_boston) print(gg_dta) # To nicely print a rfsrc::var.select output... print(varsel_boston) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.