Dear All, I am starting to use R. I need to implement a script to do some basic portfolio optimization which can be used by people with no programming skills at all. In order to do so, the user should be asked simply to input the name of the file containing the portfolio data (e.g. foo.dat), then R will read it, plus a few y/n as an answer to some questions about the contrains on the portfolio. What is the syntax to do this in R? In the examples I found, the scripts always directly contained the names of the files to read. Best Regards Lorenzo
R and Prompt
2 messages · L.Isella, Gabor Grothendieck
Look at ?file.choose ?select.list
On 7/29/05, L.Isella <L.Isella at myrealbox.com> wrote:
Dear All, I am starting to use R. I need to implement a script to do some basic portfolio optimization which can be used by people with no programming skills at all. In order to do so, the user should be asked simply to input the name of the file containing the portfolio data (e.g. foo.dat), then R will read it, plus a few y/n as an answer to some questions about the contrains on the portfolio. What is the syntax to do this in R? In the examples I found, the scripts always directly contained the names of the files to read. Best Regards Lorenzo
_______________________________________________ R-sig-finance at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-finance