Get a random subset from a data.frame.

Description

Sample rows of the given data frame with replacement.

Usage

1

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.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.