samp_df: Avoid Data Frames With Too Many Rows

Description Usage Arguments Value

View source: R/PWN_functions.R

Description

Ensure that a dataframe has <= maxsamp rows. If it doesn't, sample a subset (n=maxsamp) rows from a data frame

Usage

1
samp_df(df, maxsamp)

Arguments

df

a data frame

maxsamp

the maximum

Value

a dataframe with no more than maxsamp rows


pieterbeck/CanHeMonR documentation built on May 25, 2019, 7:11 a.m.