View source: R/missingValues.R
expectFixedSamples | R Documentation |
specify the number of expected observations for each class based on a fixed number.
expectFixedSamples(df, discreteVars, sampleCount, ...)
df |
- may be grouped, in which case the value is interpreted as different features |
discreteVars |
- the column(s) of the categorical value (X) quoted by vars(...) (usually the outcome) |
sampleCount |
- the number of samples per outcome (equal numbers). |
a dataframe with the expected values of all outcomes if there are a fixed number of samples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.