sample_df: Obtain a sample of a dataframe

Description Usage Arguments Examples

View source: R/eem.R

Description

Fast wrapper to extract a sample (with no replacement) of n rows from a data.frame

Usage

1
sample_df(data, n, bagging = FALSE)

Arguments

data

data frame

n

number of rows desired

bagging

with replacement? TRUE for bagging

Examples

1
small <- sample_df(largedata, 500)

Eflores89/eem documentation built on June 30, 2020, 2:53 a.m.