search for: calc_option

Displaying 1 result from an estimated 1 matches for "calc_option".

Did you mean: ac_option
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",...