Hi, How can we use the command BATCH (or where could I find help), there is not enough help in the help command. -what the structure of infile ? -what can we do with BATCH ? -Is it possible to analyse with the same stat method many file or dataset ? thanks in advance N.VALIERE ************************************************ VALIERE Nathaniel Laboratoire Biom?trie et Biologie Evolutive UMR5558 43, boulevard du 11 Novembre 1918 F69622 VILLEURBANNE Cedex FRANCE ************************************************ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Sun, 18 Feb 2001, VALIERE Nathaniel wrote:> Hi, > > How can we use the command BATCH (or where could I find help), there is not > enough help in the help command. > -what the structure of infile ? > -what can we do with BATCH ? > -Is it possible to analyse with the same stat method many file or dataset ?You will need to tell us the version and platform of R you are using ... If you mean R CMD BATCH (Unix/Linux) or Rcmd BATCH (Windows), infile be any file of R commands, such as you type at the command prompt, and you can do everything that does not need interaction from the user.> -Is it possible to analyse with the same stat method many file or datasetYes. If you want to find out more, look in Venables & Ripley's S Programming (2000), for example. If there is not enough help in ?BATCH then I suspect the problem is not with the help page but with your preconceptions. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
The infile has the structure of a set of commands given to R (like a shell script). You can use your .Rhistory file as a template (that is something I do). If you are using BATCH, one way to get it to process a data file given as a argument is to use the commandArgs() function (@ARGV from Perl basically). Another thing that might be useful to you is .Rprofile which is a local file, when you call R in its directory it excecutes first (it also basically an 'R script'). Again, another nice way of generating an .Rprofile is just to run your R session, saving your history to .Rhistory. On Sun, 18 Feb 2001, VALIERE Nathaniel wrote:> Hi, > > How can we use the command BATCH (or where could I find help), there is not > enough help in the help command. > -what the structure of infile ? > -what can we do with BATCH ? > -Is it possible to analyse with the same stat method many file or dataset ? > > thanks in advance > N.VALIERE > ************************************************ > > VALIERE Nathaniel > Laboratoire Biométrie et Biologie Evolutive > UMR5558 > 43, boulevard du 11 Novembre 1918 > F69622 VILLEURBANNE Cedex > FRANCE > > ************************************************ > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > 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 > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >-Alex Morgan Phone: 781-271-6306 "They laughed at Newton. Office: 3K-136 They laughed at Einstein. AOL Instant Messenger: HomeySage But they also laughed at Groucho Marx." --Carl Sagan -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._