+ Reply to Thread
Results 1 to 2 of 2

Thread: array size in R

  1. #1
    Points: 1,728, Level: 24
    Level completed: 28%, Points required for next Level: 72

    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    array size in R



    I need to create an array for the simulation. In general, how large can I setup without causing any memory-related issue?

  2. #2
    Points: 1,406, Level: 21
    Level completed: 6%, Points required for next Level: 94

    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    It depends entirely on how much memory you have. I've been learning about this a bit over the past few weeks with some issues I had. There is a rough formula which someone will be able to expand on and give you something far more accurate than me as I don't fully understand bits and bytes yet. But take your array and work out the size. You can do this with object.size(x), or very roughly by number of rows by number of columns.

    I had a data.frame with 2 million rows and 250 columns, and an apply statement took 20 minutes to complete on my dual core 8gb ram macbook. When I moved it to our 24 node 32gb ram serve it completed in 15 seconds.

    I think as a rule of thumb (happy to be correct), if object.size is anywhere near 75% or more of your ram you will have computational issues and hanging, if you're at 120% of your ram then operations might run for hours depending on what they are.

+ Reply to Thread

Similar Threads

  1. Creating an Array of Variables
    By oobylicious in forum SAS
    Replies: 1
    Last Post: 01-07-2011, 06:17 PM
  2. SAS Array/Wildcard issue
    By bagglio in forum SAS
    Replies: 0
    Last Post: 01-13-2010, 10:57 AM
  3. Splitting MathCad array. I'm sure it's easy!
    By Niste in forum Other Software
    Replies: 2
    Last Post: 08-07-2009, 03:42 AM
  4. Pass three dimensional array to Winbugs
    By kjohansen in forum R
    Replies: 0
    Last Post: 03-10-2009, 10:10 PM
  5. array representation
    By Petro in forum SAS
    Replies: 0
    Last Post: 10-21-2008, 10:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts








Advertise on Talk Stats