Skip to content
Back to formatted view

Raw Message

Message-ID: <42F73454.49841D8A@STATS.uct.ac.za>
Date: 2005-08-08T10:30:44Z
From: Clark Allan
Subject: R: cbind

hi all


are we able to combine column vectors of different lengths such that the
result appears in matrix form?

e.g.

a=1
b=1:3
d=1:4

then

z=CBIND(a,b,d)


1 1 1
  2 2
  3 3
    4

i stil want the following!
z[,1]=1
z[,2]=1:3
z[,3]=1:5

i made up the name of this function. we could use "cbind" but it does
not seem to allows this!

thanking you in advance.

/
allan