Re: [R] matrix

From: Uwe Ligges <>
Date: Wed 08 Jun 2005 - 19:04:15 EST

Achim Zeileis wrote:

> On Wed, 8 Jun 2005 10:37:15 +0200 (CEST) Navarre Sabine wrote:
>>is it possible to create a matrix with one row and according to add a
>>row? in fact, at present, I'm doing an algorithm which fill a matrix.
> I think you are looking for
> ?rbind
> and might also be interested in looking at "An Introduction to R" or
> other introductory manuals.

Achim is completely correct, I'd like to add:

If you do know the size of the matrix before your algorithm starts iterating, you should not use rbind() but generate a fullsize matrix at first and replace row by row afterwards.

Uwe Ligges

>>On the web site of CRAN, the package basic is impossible to be load!
>>can you tell me where i can found it!
> You already asked this question yesterday (and received no reply because
> it doesn't make sense). There is no package with the name "basic". There
> is only the "base" package which is part of every distribution of R
> (which I hope you have installed) and loaded at startup of R.
> Z
> ______________________________________________
> mailing list
> PLEASE do read the posting guide! mailing list PLEASE do read the posting guide! Received on Wed Jun 08 19:12:04 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:27 EST