Choose multiple options from a menu

multi.menuR Documentation

Choose multiple options from a menu

Description presents the user with a menu of choices labelled from 1 to the number of choices. The user may choose one or more options by entering a comma separated list. A range of values may also be specified using the ":" operator. Mixed expressions such as "1,3:5, 6" are permitted.

If is set to TRUE, one can select ‘0’ to exit without choosing an item.

Usage, title, header, = TRUE)



Character vector of labels for choices


Title printed before menu


Character vector of length 2 giving column titles

Permit 0 as an acceptable response


Numeric vector giving the numbers of the options selected, or 0 if no selection is made.


Martyn Plummer

See Also


coda documentation built on May 29, 2024, 11:23 a.m.

Related to in coda...