Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    It looks interesting.. I'll have a closer look at it tomorrow.. Based on wikipedia's page, "R has become a de facto standard among statisticians"... well that's a significant accolade... I actaully tried to dowload it the other day (I kept seeing it mentioned), but I couldn't find it in the Ubuntu repo... I'll follow it up tomorrow... Commented May 25, 2011 at 17:26
  • 11
    in the ubuntu (and debian?) repo the package is named r-base. Commented May 25, 2011 at 17:44
  • 1
    thanks, I needed that name reference :) I didn't think of r- in the synaptic search field and it doesn't act on a lone character... I've tried it out now, and it looks ideal.. The R language is clearly the best for my requirement in this situation.. As per Gilles' answer, the Rscript interface to script files is most appropriate (vs. R, which is the interactive interface)... and R in the terminal makes for a handy calculator, or test environment (like python :) Commented May 26, 2011 at 11:28
  • If you have data on stdin, you can use such a one-liner: { echo 'd<-scan()'; cat; echo; echo 'summary(d)'; } | R --slave Commented Sep 2, 2013 at 14:19
  • 9
    or just cat datafile | Rscript -e 'print(summary(scan("stdin")));' Commented Aug 11, 2014 at 22:32