Create YAML string for NumericGap object
gap_numeric(
solution,
tolerance = 0,
tolerance_type = "absolute",
points = 1,
response_identifier = NULL,
include_lower_bound = TRUE,
include_upper_bound = TRUE,
expected_length = size_gap(solution),
placeholder = NULL
)
A character string mapped as yaml.
A numeric value; contains right answer for this numeric entry.
A numeric value, optional; specifies the value for up and low boundaries of tolerance rate for candidate answer. Default is 0.
A character string, optional; specifies tolerance mode; possible values:"exact", "absolute" (by default), "relative".
A numeric value, optional; the number of points for this gap. Default is 1.
A character string, optional; an identifier for the answer.
A boolean, optional; specifies whether or not the lower bound is included in tolerance rate.
A boolean, optional; specifies whether or not the upper bound is included in tolerance rate.
An integer value, optional; is responsible to set a size of text input field in content delivery engine.
A character string, optional; is responsible to place some helpful text in text input field in content delivery engine.
gap_text()
, dropdown()
, mdlist()
gap_numeric(5.0, tolerance = 10, tolerance_type = "relative")
Run the code above in your browser using DataLab