resample_df: Resample a Data Frame

Description Usage Arguments Value

Description

Resample a Data Frame

Usage

1
resample_df(df, size, replace = FALSE, prob = NULL)

Arguments

df

: a data frame

size

: a non-negative integer giving the number of items to choose.

replace

: should sampling be with replacement?

prob

: a vector of probability weights for obtaining the elements of the vector being sampled.

Value

a data frame containing the resampled rows.


ArithmeticR/TOmisc documentation built on May 14, 2019, 12:43 p.m.