Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

eatTools (version 0.7.8)

existsBackgroundVariables: Internally needed function for consistency checks and data preparation.

Description

Function is necessary for eatRep and eatModel as well and therefore exported to namespace.

Usage

existsBackgroundVariables (dat, variable, warnIfMissing = FALSE,
     stopIfMissingOnVars = NULL)

Value

a structured list of variable names

Arguments

dat

A data frame

variable

column number or variable name

warnIfMissing

Logical: gives a warning if the variable contains missing values

stopIfMissingOnVars

Character vector of variable names. Only for these variables, warnings as raised through warnIfMissing = TRUE are turned into errors.

Examples

Run this code
data(mtcars)
existsBackgroundVariables(mtcars, 2:4)

Run the code above in your browser using DataLab