stratSample: Stratified sample

Description Usage Arguments Value Author(s)

View source: R/randomForest.R

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


kkatellis/TLBC documentation built on May 20, 2019, 10:26 a.m.