I was just running some regressions and R died with an exit code of 137. I assume the problem has something to do with memory usage since I was using some fairly large data sets and the Linux system I am on was getting real slow just before the crash. This prompted me to go looking for a list of R exit codes, but a search yielded nothing. Is there such a list? -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 Tue, 22 Oct 2002, Hilmar M. Carders wrote:> > I was just running some regressions and R died with an exit code of 137. > I assume the problem has something to do with memory usage since I was > using some fairly large data sets and the Linux system I am on was > getting real slow just before the crash. > > This prompted me to go looking for a list of R exit codes, but a search > yielded nothing. Is there such a list?Not that I am aware of. However, the only exit codes that I am aware that R itself produces are via R_CleanUp, and I can see that called with 0, 1 and 2. 0 is a normal exit 1 is an error exit in non-interactive mode 2 is `suicide', a catastrophic error (or termination by SIGUSR1) I think error codes like 137 come from your C run-time system. -- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Is there an R function that gives the equivalent of the UNIX command "uniq -c" which could be applied to a vector with duplicate values?
Hilmar M. Carders wrote:> Is there an R function that gives the equivalent of the UNIX command > "uniq -c" which could be applied to a vector with duplicate values?See ?table. Uwe Ligges
Thanks to all who responded so quickly, table() is exactly what I was looking for. On Thu, 19 Dec 2002, Uwe Ligges wrote:> Hilmar M. Carders wrote: > > Is there an R function that gives the equivalent of the UNIX command > > "uniq -c" which could be applied to a vector with duplicate values? > > See ?table. > > Uwe Ligges >
Apparently Analagous Threads
- stop R mainloop without calling exit(1)
- Refactor all factors in a data frame
- Crash after (wrongly) applying product operator on object from LIMMA package
- Strange case of partial matching in .[ - possible bug / wrong documentation?
- '==' operator: inconsistency in data.frame(...) == NULL