How to request an input from the user through keyboard and monitor?
Answer Posted / Smit Agarwal
In R, you can use the `readline()` function to request input from the user through the console.nn```rninput <- readline(prompt = "Enter your input: ")n```nThis will display a prompt asking for user input. The entered text is then stored in the variable `input`.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers