subsetByClassHelper2 {dsBase} | R Documentation |
This is an internal function called by the function 'subsetByClassDS'
subsetByClassHelper2(df = NULL, iter = NULL, filter = NULL)
df |
a data frame. |
iter |
the indices of columns to loop trough. |
filter |
the minimum number of observations (i.e. rows) that are allowed. |
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).
a list which contains the subsets, their names and an integer that indicates how many columns were not factors.
Gaye, A.