subsetByClassHelper1 {dsBase}R Documentation

generates subsets vectors from a factor vector

Description

This is an internal function called by the function 'subsetByClassDS'.

Usage

subsetByClassHelper1(xvect = NULL, xname = NULL, filter = NULL)

Arguments

xvect

a vector of type factor.

xname

the name of the vector.

nfilter

the minimum number observation (i.e. rows) that are allowed.

Details

The function generates subsets if the input of 'subsetByClassDS' is a factor vector.

Value

a list which contains the subsets.

Author(s)

Gaye, A.


[Package dsBase version 6.3.0 ]