Integer Option

The Integer option represents a whole number.

Description

In the jamovi UI, an Integer option is typically represented by a TextBox. It validates that the user input is a whole number and falls within the specified range.

YAML Properties

PropertyTypeDescription
namestringThe unique name of the option.
typestringMust be Integer.
titlestringThe label displayed in the UI.
defaultintegerThe default value.
minintegerThe minimum allowed value (inclusive).
maxintegerThe maximum allowed value (inclusive).

R Implementation

In R, an Integer option is represented as an integer value.

Examples

1. Define in YAML

- name: bootstrap
  type: Integer
  title: Bootstrap samples
  default: 1000
  min: 1

2. Implementation in R

Access the value using self$options$name:

n_samples <- self$options$bootstrap