R/random_forest_model.R

Defines functions randomForestModel

Documented in randomForestModel

#' randoMForestModel
#' @title Random Forest Model
#' @description Build Random Forest Model.
#' @param eqn formula
#' @param df data.frame
#' @importFrom randomForest randomForest
#' @return rf model
#' @export
#' @author Jayachandra N
#' @examples
#' randomForestModel( Species ~ .,  iris)
randomForestModel <- function(eqn, df){
  randomForest::randomForest(eqn, data = df, importance = TRUE)
}

Try the shinyr package in your browser

Any scripts or data that you put into this service are public.

shinyr documentation built on Oct. 21, 2021, 5:07 p.m.