Hi R community, I want to create a script which will take the .csv table as input and do some prediction and output should be returned to some file.Inputs is exel sheet containing some tables of data.out should be table of predicted data.Will some one help me in this regards... Thanks in advance. I am using Windows R.Please advise proccedure to create Rscript. Regards --------- Vijay Research student Bangalore India -- View this message in context: http://r.789695.n4.nabble.com/i-want-create-script-tp2268011p2268011.html Sent from the R help mailing list archive at Nabble.com.
I'd suggest having a look at the manuals on the [url=http://www.r-project.org][b]R[/b][/url]site, especially the Introduction to R and R Data Import/Export. Some helpful tutorials may be found at http://www.math.ilstu.edu/dhkim/Rstuff/Rtutor.html and http://www.sph.umich.edu/csg/abecasis/class/815.05.pdf --- On Fri, 6/25/10, vijaysheegi <vijay.sheegi at gmail.com> wrote:> From: vijaysheegi <vijay.sheegi at gmail.com> > Subject: [R] i want create script > To: r-help at r-project.org > Received: Friday, June 25, 2010, 2:26 AM > > Hi R community, > I want to create a script which will take the .csv table as > input and do > some prediction and output should be returned to some > file.Inputs is exel > sheet containing some tables of data.out should be table of > predicted > data.Will some one help me in this regards... > Thanks in advance. > > I am using Windows R.Please advise proccedure to create > Rscript. > > > Regards > --------- > Vijay > Research student > Bangalore > India > -- > View this message in context: http://r.789695.n4.nabble.com/i-want-create-script-tp2268011p2268011.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org > mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, > reproducible code. >
Please read the posting guide : http://www.R-project.org/posting-guide.html Your question is very vague. One could assume you're completely new to R and want the commands to read a csv file (see ?read.csv), and to write away a table (eg ?write.table to write your predicted data in a text format). My guess is you want to run this script in the shell without having to open R, similar to a perl scipt. For this, take a look at: http://cran.r-project.org/doc/manuals/R-intro.html#Scripting-with-R http://projects.uabgrid.uab.edu/r-group/wiki/CommandLineProcessing Cheers Joris On Fri, Jun 25, 2010 at 8:26 AM, vijaysheegi <vijay.sheegi at gmail.com> wrote:> > Hi R community, > I want to create a script which will take the .csv table as input and do > some prediction and output should be returned to some file.Inputs is exel > sheet containing some tables of data.out should be table of predicted > data.Will some one help me in this regards... > Thanks in advance. > > I am using Windows R.Please advise proccedure to create Rscript. > > > Regards > --------- > Vijay > Research student > Bangalore > India > -- > View this message in context: http://r.789695.n4.nabble.com/i-want-create-script-tp2268011p2268011.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 Joris.Meys at Ugent.be ------------------------------- Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php