expectOnePerSample: specify the number of expected observations for each class...

View source: R/missingValues.R

expectOnePerSampleR Documentation

specify the number of expected observations for each class based on a grouping of the data

Description

specify the number of expected observations for each class based on a grouping of the data

Usage

expectOnePerSample(df, discreteVars, sampleVars, ...)

Arguments

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(...) i.e. typically the outcome

sampleVars

- the column(s) that identify the sample space, quoted by vars(...) i.e. usually the sample identifier

Value

a dataframe with the expected values of all outcomes if there are identified samples and we expect every feature to be present once


terminological/tidy-info-stats documentation built on Nov. 19, 2022, 11:23 p.m.