| ask {sm} | R Documentation |
This function prints a message and prompts the user to type in data on the keyboard.
ask(message="Type in datum")
message |
a character value, normally something describing the required input |
the object typed in.
n <- ask("sample size")
nv <- ask("vector of sample sizes")
# in the second case, the user could reply eg with `c(5,10,30)'