sample_dataframe: sample from a data.frame

Description Usage Arguments

Description

R programmers use data.frames for pretty much everything and yet sample() doesn't have a data.frame method, thus ruining the only base R function with sensible parameter names. Argh.

Usage

1

Arguments

x

a data.frame

size

the size of the sample

replace

whether to sample with replacement; FALSE by default.


Ironholds/olivr documentation built on May 7, 2019, 6:40 a.m.