sourcing code and importing data; was: A layman seeks help!
Mark Edwards wrote:
I have been given a 'code' file and a 'data' file which is designed for use in R. I have successfully installed the program onto my pc, but am struggling to actaully use the code. How do i prompt R to read the code file and run? Any ideas?
Yes. At first you should get an idea what R is and how to use it. For a "layman" a point to start is reading "An Introduction to R". If you feel comfortable with the manuals and cannot figure out how to solve a problem, you can ask the mailing list, but put an appropriate subject into the header, please. Well, you can use source() to source the code. How to import the data is described in the "R Data Import/Export" manual - it depends on the format of your "data". Since your questions is not very explicit, I cannot give an explicit answer. Please, tell us your OS and version of R in case of forthcoming questions. Uwe Ligges -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._