checkVariableType: Checking variable types

Description Usage Arguments Value Examples

View source: R/utilities-input-validation.R

Description

Verifies that the variable is an element in the set of acceptable types.

Usage

1
checkVariableType(type, inTypes, emptyOkay = FALSE)

Arguments

type

A character specifying the type of the variable.

inTypes

A vector of acceptable types of variables.

Value

The original character string indicating the variable type.

Examples

1
checkVariableType(type='Numeric', inTypes=c('Numeric', 'Factor'))

privacytoolsproject/PSI-Library documentation built on Feb. 17, 2020, 2:03 p.m.