DM.checkExistence: Check existence of variables in the students workspace at...

Description Usage Arguments Value Examples

View source: R/DM.checkExistence.R

Description

Functions takes character vector as an input and checks whether these variables are defined in the students workspace.

Usage

1
DM.checkExistence(variables = NULL)

Arguments

variables

Character vector

Value

It doesn't return anything in case all variables indeed exist in the students workspace, but it returns a list with FALSE as first element and a message as second element in case at least one variable doesn't exist.

Examples

1
2
3
4
existing1 <- 1
existing2 <- 2
DM.checkExistence( c("existing1","existing2") ) # Doesn't return anything
DM.checkExistence( "this.variable.doesnt.exist" ) # Returns a useful message for student

jonathancornelissen/DM documentation built on May 19, 2019, 7:27 p.m.