tcR (version 1.1)

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

Description

Sample rows of the given data frame with replacement.

Usage

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 than choose with replacement, else without.

Value

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