Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

multi.menu

Choose multiple options from a menu


Description

multi.menu 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 allow.zero is set to TRUE, one can select ‘0’ to exit without choosing an item.

Usage

multi.menu(choices, title, header, allow.zero = TRUE)

Arguments

choices

Character vector of labels for choices

title

Title printed before menu

header

Character vector of length 2 giving column titles

allow.zero

Permit 0 as an acceptable response

Value

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

Author(s)

Martyn Plummer

See Also


coda

Output Analysis and Diagnostics for MCMC

v0.19-4
GPL (>= 2)
Authors
Martyn Plummer [aut, cre, trl], Nicky Best [aut], Kate Cowles [aut], Karen Vines [aut], Deepayan Sarkar [aut], Douglas Bates [aut], Russell Almond [aut], Arni Magnusson [aut]
Initial release
2020-09-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.