subsetByClassHelper2 {dsBase}R Documentation

generates subset tables from a data frame

Description

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

Usage

subsetByClassHelper2(df = NULL, iter = NULL, filter = NULL)

Arguments

df

a data frame.

iter

the indices of columns to loop trough.

filter

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

Details

The function generates subsets if the input of 'subsetByClassDS' is a data frame and if the number variables(columns) to subset by are greater than 1; i.e. this function is called if the user specified more than one variable or no variable to subset by (if no variables are specified the function 'subsetByClassDS' produces a subset for each category in each variable).

Value

a list which contains the subsets, their names and an integer that indicates how many columns were not factors.

Author(s)

Gaye, A.


[Package dsBase version 6.3.0 ]