Re: [R] Memory usage reported by gc() differs from 'top'

2013-04-19 Thread Christian Brechbühler
Merci beaucoup Milan, thank you very much Martin and Kjetil for your responses. I appreciate the caveat about virtual memory. I gather that besides resident memory and swap space, it may also include memory mapped files, which don't cost anything. Maybe by pure chance, in my case virtual memory

[R] Memory usage reported by gc() differs from 'top'

2013-04-17 Thread Christian Brechbühler
In help(gc) I read, ...the primary purpose of calling 'gc' is for the report on memory usage. What memory usage does gc() report? And more importantly, which memory uses does it NOT report? Because I see one answer from gc(): used (Mb) gc trigger (Mb) max used (Mb) Ncells

Re: [R] vector entry in matix

2012-07-05 Thread Christian Brechbühler
To second Bert Gunter: you may get better answers if you give us a complete description. On Thu, Jul 5, 2012 at 12:37 PM, Thomas C. thomas.csa...@gmail.com wrote: i have number of triangles which i'd like to store in a list, matrix,...etc. i thought it could look sth. like that: triangle

Re: [R] ranking a vector in R

2012-06-21 Thread Christian Brechbühler
On Wed, Jun 20, 2012 at 6:24 PM, Jessy jmahac...@gmail.com wrote: May someone help me with how in R I can rank a vector from highest to lowest. i.e rank 1 (smallest rank) is given to the highest value instead of the usual way that it get's the highest rank. How about rank(-v), e.g.,