Re: [R] R: matrix sizes

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Mon 08 Aug 2005 - 20:51:18 EST

Clark Allan wrote:

> hi all
>
> assume that one is doing a simulation. in each iteration one produces a
> vector of results. this vectors length might change for each different
> iteration. how can one construct a matrix that contains all of the
> interation results in a matrix where each of the columns are the outputs
> from the different interations.
>
> how would have to define the output matrix initally?

Of course, you define it to the maximal_length x number_iterations, but in fact you probably want a list rather than a matrix.

Uwe Ligges

> /
> thanking you in advance
>
>
> ------------------------------------------------------------------------
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Aug 08 20:58:15 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:08:57 EST