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
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.