Learn R Programming

Covid19Wastewater (version 1.0.1)

bagging: 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)

Value

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

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

Examples

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

Run the code above in your browser using DataLab