[BioC] switch menu
Seth Falcon
sfalcon at fhcrc.org
Tue Jul 5 16:16:10 CEST 2005
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
More information about the Bioconductor
mailing list