check_existence: Check existence of variables in the students workspace at...

Description Usage Arguments Value Examples

Description

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

Usage

1
check_existence(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
check_existence( c("existing1","existing2") ) # Doesn't return anything
check_existence( "this.variable.doesnt.exist" ) # Returns a useful message for student

jonathancornelissen/datamindSCT documentation built on May 19, 2019, 7:28 p.m.