hasType: Check whether parameter set contains a certain type.

hasTypeR Documentation

Check whether parameter set contains a certain type.

Description

TRUE if 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)


ParamHelpers documentation built on July 4, 2022, 5:07 p.m.