[R] matrix with fix number columns but variable number rows

Agustin Lobo alobo at ija.csic.es
Tue Mar 19 12:48:37 CET 2002

On Tue, 19 Mar 2002, Agustin Lobo wrote:

> matriz <- matrix(NULL,nrow=numlineas,ncol=maxnumcols)

Actually I had not tried it, it should be, i.e.

matriz <- matrix(0,nrow=numlineas,ncol=maxnumcols)

as with NULL we cannot fill a matrix


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list