[R] extendable arrays in R

2006-03-02 Thread Brad Thompson
In an R program I am working on, I progressively build up several vectors of integers. I never know how long the vectors will eventually be, so I can't preallocate them with vector(). If I preallocate all of the vectors to their maximum size, I will run out of memory. I tried using c() or

Re: [R] extendable arrays in R

2006-03-02 Thread Sundar Dorai-Raj
Brad Thompson wrote: In an R program I am working on, I progressively build up several vectors of integers. I never know how long the vectors will eventually be, so I can't preallocate them with vector(). If I preallocate all of the vectors to their maximum size, I will run out of memory.