Timeline for Is there a way to get the min, max, median, and average of a list of numbers in a single command?
Current License: CC BY-SA 3.0
15 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 18, 2020 at 18:53 | comment | added | gies0r | Very nice, actually my very first R script ever run :) | |
| Jul 31, 2016 at 6:39 | comment | added | Neil McGuigan | If you want to parse the output of summary(), use tail +2 | awk '{print $N}' where N is the column you want | |
| Mar 3, 2015 at 16:56 | history | edited | Lesmana | CC BY-SA 3.0 | added 98 characters in body |
| Dec 10, 2014 at 22:29 | history | edited | Lesmana | CC BY-SA 3.0 | deleted 44 characters in body |
| Dec 9, 2014 at 10:56 | history | edited | Lesmana | CC BY-SA 3.0 | added 74 characters in body |
| Dec 9, 2014 at 10:38 | history | edited | Lesmana | CC BY-SA 3.0 | added 74 characters in body |
| Aug 11, 2014 at 22:32 | comment | added | shabbychef | or just cat datafile | Rscript -e 'print(summary(scan("stdin")));' | |
| Nov 18, 2013 at 11:24 | history | edited | Lesmana | CC BY-SA 3.0 | deleted 247 characters in body |
| Nov 18, 2013 at 9:54 | history | edited | Lesmana | CC BY-SA 3.0 | added 349 characters in body |
| Sep 2, 2013 at 14:19 | comment | added | Michał Wróbel | If you have data on stdin, you can use such a one-liner: { echo 'd<-scan()'; cat; echo; echo 'summary(d)'; } | R --slave | |
| May 26, 2011 at 11:28 | comment | added | Peter.O | 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 :) | |
| May 26, 2011 at 10:12 | vote | accept | Peter.O | ||
| May 25, 2011 at 17:44 | comment | added | Lesmana | in the ubuntu (and debian?) repo the package is named r-base. | |
| May 25, 2011 at 17:26 | comment | added | Peter.O | 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... | |
| May 25, 2011 at 17:07 | history | answered | Lesmana | CC BY-SA 3.0 |