hasType: Check whether parameter set contains a certain type.

Description Usage Arguments Value

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

1
2
3
4
5
6
7
8
9
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 March 26, 2020, 7:40 p.m.