Learn R Programming

dynparam (version 1.0.2)

integer_range_parameter: Define a integer range parameter

Description

Define a integer range parameter

Usage

integer_range_parameter(
  id,
  default,
  lower_distribution,
  upper_distribution,
  description = NULL,
  tuneable = TRUE
)

Arguments

id

The name of the parameter.

default

The default value of the parameter.

lower_distribution

A distribution from which the lower value of the range can be sampled.

upper_distribution

A distribution from which the upper value fo the range can be sampled.

description

An optional (but recommended) description of the parameter.

tuneable

Whether or not a parameter is tuneable.

See Also

dynparam for an overview of all dynparam functionality.

Examples

Run this code
# NOT RUN {
integer_range_parameter(
  id = "ks",
  default = c(3L, 15L),
  lower_distribution = uniform_distribution(1L, 5L),
  upper_distribution = uniform_distribution(10L, 20L),
  description = "The numbers of clusters to be evaluated."
)
# }

Run the code above in your browser using DataLab