numeric_choice: Allow a user to specify a numeric answer

Description Usage Arguments Value

Description

Numeric answers are specified within a range. The range can be given by a lower and upper bound or by number of significant digits.

Usage

1
2
  numeric_choice(page, x.lower, x.upper, digits, comment,
    hint, ...)

Arguments

page

Page instance

x.lower

lower value if x.upper given, else if digits given middle value.

x.upper

upper value of range

digits

if x.upper not given, specifies number of significant digits allowed.

comment

Optional. Named list with names drawn from "less" or "more" to customize comment when user answer is less or more.

hint

Optional. A hint (in HTML) to the user popped up when the user hovers

...

passed to hint

Value

text to add to a page


jverzani/questionr documentation built on May 20, 2019, 5:20 a.m.