Create object NumericGap
numericGap(
solution,
response_identifier = generate_id(type = "gap"),
points = 1,
placeholder = "",
expected_length = size_gap(solution),
tolerance = 0,
tolerance_type = "absolute",
include_lower_bound = TRUE,
include_upper_bound = TRUE
)gapNumeric(
solution,
response_identifier = generate_id(type = "gap"),
points = 1,
placeholder = "",
expected_length = size_gap(solution),
tolerance = 0,
tolerance_type = "absolute",
include_lower_bound = TRUE,
include_upper_bound = TRUE
)
An object of class NumericGap
A numeric value containing the correct answer for this numeric entry.
A character value representing an identifier for the answer. By default, it is generated as 'id_gap_dddd', where dddd represents random digits.
A numeric value, optional, representing the number of points for this gap. Default is 1
A character value, optional, responsible for placing helpful text in the text input field in the content delivery engine. Default is "".
A numeric value, optional, responsible for setting the size of the text input field in the content delivery engine. Default value is adjusted by solution size.
A numeric value, optional, specifying the value for the upper and lower boundaries of the tolerance rate for candidate answers. Default is 0.
A character value, optional, specifying the tolerance mode. Possible values:
"exact"
"absolute" - Default.
"relative"
A boolean value, optional, specifying whether the
lower bound is included in the tolerance rate. Default is TRUE
.
A boolean value, optional, specifying whether the
upper bound is included in the tolerance rate. Default is TRUE
.
[entry()][textGap()][textGapOpal()]
ng_min <- numericGap(5.1)
ng <- numericGap(solution = 5.1,
response_identifier = "id_gap_1234",
points = 2,
placeholder = "put your answer here",
expected_length = 4,
tolerance = 5,
tolerance_type = "relative")
Run the code above in your browser using DataLab