Displaying 1 result from an estimated 1 matches for "calc_opt".
Did you mean:
calc_bps
2007 Jun 25
1
R behaviour related to user input (readline()) and run selection
...arts where I first get the user's input
then afterwards run the if/else section, there is no problem.
Is there a way to stop the "run selection" process until the user
has input a value?
------------------------------------------------------------------------
-----
calc_option <- function(){
msg <- cat("Please select an option:\n"," 'O'ne or 'A'll':
")
co <- readline(msg)
switch(co,
O = "O", o = "O",...