switch menu
1
0
Entering edit mode
@katleen-de-preter-1070
Last seen 8.9 years ago
Belgium
An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/bioconductor/attachments/20050704/ 07423b30/attachment.pl
• 511 views
ADD COMMENT
0
Entering edit mode
Seth Falcon ★ 7.4k
@seth-falcon-992
Last seen 9.7 years ago
Hi Katleen, On 4 Jul 2005, katleen.depreter at ugent.be wrote: > Dear BioC users, I have a more R related question. Using > switch(menu(...)) you can present a number of choices (for example: > switch(menu(c("List letters", "List LETTERS")) + 1, cat("Nothing > done\n"), t<-letters, t<-LETTERS)). However, how can you use a menu > to ask a value between 1 and 10 that has to be assigned to a > variable t. Best regards, Katleen I'm not sure you can do this with menu(), but take a look at readline(). Also, this sort of question, being more general in nature, would likely receive more response on the R-help list. + seth
ADD COMMENT

Login before adding your answer.

Traffic: 271 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6