balance.sample: Reports a balanced sample of a data frame's factors

Description Usage Arguments Value

Description

will return a balancd data frame subset of the original

Usage

1
2
balance.sample(df, response, factor.colmn, replace = FALSE,
  min.samp.numb = "min")

Arguments

df

data frame passed containing value vector and factors

response

positive integer index or character name of a column response vector

factor.colmn

vector of positive integer(s) index(es) or character name of column(s) that describes the index of the factors to be used

replace

Not yet working

min.samp.numb

Can take a positive integer, only subsets of factors greater than or equal to this number will be reported

Value

Balanced data frame that is a subset of the first


jtlandis/justinmisc documentation built on May 25, 2019, 8:18 a.m.