How to read a numeric expression from user in R studio
I want to read a numeric expression (ex:- 9/3) from the user during runtime and print the answer(3). I used readline() but since it reads the line as a string, when as.numeric() function is applied the output is NaN. How do I convert the expression to get a numeric value? This is the code I… Read More How to read a numeric expression from user in R studio