get_sampledflist: Generate random data list from a original data.

Description Usage Arguments Value Author(s) Examples

View source: R/diff-ml-utilities.R

Description

Generate random data list from a original data.

Usage

1
get_sampledflist(dalist, bootnums = 30, ratio = 0.7, makerownames = FALSE)

Arguments

dalist

list, a list contained multi data.frame.

bootnums

integer, the number of bootstrap iteration, default is 30.

ratio

numeric, the ratios of each data.frame to keep.

makerownames

logical, whether build row.names,default is FALSE.

Value

the list contained the data.frame generated by bootstrap iteration.

Author(s)

Shuangbin Xu

Examples

1
2
3
4
data(iris)
irislist <- split(iris, iris$Species)
set.seed(1024)
irislist <- get_sampledflist(irislist)

MicrobiotaProcess documentation built on April 18, 2021, 6 p.m.