Learn R Programming

ParamHelpers (version 1.14.2)

hasType: 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)

Value

logical(1)

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.