I've created some R code for use by people who know nothing of R (though I'm pretty green myself). I've been having people paste in the initial data to the R console (with mixed results), and I was hoping to set up a more user-friendly way for people to enter in data.
Ideally, someone could sit down at the console, type in a command, and be prompted with specific questions on how to enter the data.
For example, a person loads up r and sees a prompt:
What is x value?
The person types in:
2
Next prompt:
What is y value?
Person types in:
3
Next prompt:
What are T values?
Person types in:
4,3,2,1
Next prompt:
What are V values?
Person types in :
4,5,6,9
And with these 4 newly defined variables (X,Y,T,V) R's next step is to run the pre-written code
X+Y
V+T
And in the console, the answers pop up
5
8 8 8 10
And everyone is happy
My apologies as this is not a reproducible code kind of question, but I'm not sure how to approach making R ask questions as opposed to me asking a question about R!