[R] Two scattered matrix

Ott Toomet siim at obs.ee
Thu May 2 14:44:37 CEST 2002


On Thu, 2 May 2002, Ambrosini Alessandro wrote:

  |Hello.
  |Given two scattered matrix
  |
  |a b c d
  |s n
  |q w e r t y
  |
  |and
  |
  |cx vf re ty sw k 
  |sa gf jk we 
  |as cd
  |
  |I want to obtain a single matrix as
  |
  |a b c d
  |s n
  |q w e r t y
  |cx vf re ty sw k 
  |sa gf jk we 
  |as cd

Hi,

What is ,,scattered matrix''?  I do not know such a data structure in R.  If
you have lists (which allow components of different length), you have simply
to say

c(list1, list2)

to get the lists concated.  You may also look at ?rbind and ?cbind, if you
indeed have some matrix or data.frame type variables.

Ott

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