Learn R Programming

ParamHelpers (version 1.1-36)

getParamIds: Return ids of parameters in parameter set.

Description

Useful if vectors are included.

Usage

getParamIds(par.set, repeated = FALSE, with.nr = FALSE)

Arguments

par.set
[ParamSet] Parameter set.
repeated
[logical(1)] Should ids be repeated length-times if parameter is a vector? Default is FALSE.
with.nr
[logical(1)] Should number from 1 to length be appended to id if repeated is TRUE? Otherwise ignored. Default is FALSE.

Value

  • [character].

Examples

Run this code
ps <- makeParamSet(
  makeNumericParam("u"),
  makeIntegerVectorParam("v", len=2)
)
getParamIds(ps)
getParamIds(ps, repeated=TRUE)
getParamIds(ps, repeated=TRUE, with.nr=TRUE)

Run the code above in your browser using DataLab