bagging: Bootstrap aggregating of dataset gen a list of dataframes...

View source: R/library--analysis_tools--lm_rand_forest--info.R

baggingR Documentation

Bootstrap aggregating of dataset gen a list of dataframes using row resampling and column downsizing

Description

Bootstrap aggregating of dataset gen a list of dataframes using row resampling and column downsizing

Usage

bagging(data, num_bags, num_features = NULL, include_first = 0)

Arguments

data

data.frame info

num_bags

number of resamplings done

num_features

number of columns in each output data.frame

include_first

auto include the first n rows

Value

return list of 2 list of data.frame given different bagged data

Examples

data(Example_data, package = "Covid19Wastewater")
head(bagging(Example_data, 10, 5, 2))

Covid19Wastewater documentation built on Aug. 25, 2023, 1:07 a.m.