sample.clones: Get a random subset from a data.frame.

Description Usage Arguments Value

Description

Sample rows of the given data frame with replacement.

Usage

1
sample.clones(.data, .n, .replace = T)

Arguments

.data

Data.frame or a list with data.frames

.n

Sample size if integer. If in bounds [0;1] than percent of rows to extract. "1" is a percent, not one row!

.replace

if T then choose with replacement, else without.

Value

Data.frame of nrow .n or a list with such data.frames.


tcR documentation built on July 2, 2020, 3:18 a.m.