sample_obs: Sample Observtions

Description Usage Arguments Value

View source: R/sample_obs.R

Description

This function will sample n observations, or if n < 1, it will sample the proportion of the total obseravtion specified by n.

Usage

1

Arguments

df

dataframe to sample

n

integer or numeric < 1 and > 0

Value

a dataframe with number of observations specified by n, or the proportion of observations specified by n.


wfmueller29/impyoot documentation built on Dec. 23, 2021, 5:12 p.m.