Learn R Programming

ParamHelpers (version 1.8)

hasType: Check whether parameter set contains a certain type.

Description

TRUE iff the parameter set contains at least one parameter of the mentioned type x. Type x always subsumes x and x-vector.

Usage

hasDiscrete(par.set, include.logical = TRUE)
hasInteger(par.set)
hasLogical(par.set)
hasCharacter(par.set)
hasNumeric(par.set, include.int = TRUE)

Arguments

par.set
[ParamSet] Parameter set.
include.logical
[logical(1)] Are logicals also considered to be discrete? Default is TRUE.
include.int
[logical(1)] Are integers also considered to be numeric? Default is TRUE.

Value

[logical(1)].