ttimbers/distransam: Creates random samples with equal N's across different sample groups

Takes a data frame, and returns one with equal N's for each group. For unequal sample sizes, it finds the minimum sample size from the smallest group, and randomly selects that number of samples from each group. A single sub-groups can be specified, as can a maximum N value. The returned object is a dataframe, with all the same original columns as the original data frame.

Getting started

Package details

Maintainer
LicenseMIT + file LICENSE
Version0.0.0.9000
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("ttimbers/distransam")
ttimbers/distransam documentation built on June 1, 2019, 2:49 a.m.