What is the problem with initializing a matrix object to NULL and then growing it with cbind() and rbind() ? In case the number of rows and columns are not known a priori, is it not necessary to grow from NULL?
Edit: My question was prompted by the need to understand memory efficient ways of writing R code. The matrix context is more general and I'm probably looking for suggestions about efficient ways to handle other data objects as well. Apologize for being too abstract/generic, but I did not really have a specific problem in mind.