stratSample: Stratified sample

Description

Function to choose a random sample of data stratified by label.

Usage

1

Arguments

labels

Vector of strings denoting labels.

nsamp

Number of items to sample from each label class.

Value

Vector of indices chosen.

Author(s)

Katherine Ellis


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.