Re: [R] Simulate user input in R

2013-04-24 Thread Vahe nr
Thanks Jeff for your reply... The code is not written by me it is the NDVITS package which is used in R. TimeSeriesAnalysis {ndvits} And at that point it requires my input. Regards, Vahe On Wed, Apr 24, 2013 at 11:04 AM, Jeff Newmiller wrote: > Your example is not reproducible, so it is op

Re: [R] Simulate user input in R

2013-04-24 Thread Jeff Newmiller
Your example is not reproducible, so it is open to misinterpretation. Normally the approach taken in R is not to wait for user input, but have the user call the function with the desired values. One interpretation of your question is that the function you are using is broken by design, and you s

[R] Simulate user input in R

2013-04-23 Thread Vahe nr
Dear all, Can we simulate user input in R ? for example if we have a function which needs an input from the user to continue its work, can we automate this step (simulate the input...) Here is the sample: choose between one of the grouping factor available : c("Village", "Country") we need to ent