Skip to content

How to stack row vector on top of each other?

6 messages · C W, Pascal Oettli, Nordlund, Dan (DSHS/RDA) +2 more

#
Hi,

Actually, ?"c"

 > a <- rnorm(10)
 > b <- rnorm(10)
 > d <- c(a,b)
 > length(d)
[1] 20

HTH,
Pascal


Le 15/02/2013 10:08, C W a ?crit :
#
I guess I don't know what you mean by "actually stack a vector on top of each other".  Given the vectors 

a <- 1:3
b <- 4:6

What result do you want from "stacking" a and b?


Dan

Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA 98504-5204
#
How about 

c(a, b)

?

HTH,
Giovanni
1 day later
#
On 15.02.2013 16:37, Giovanni Petris wrote:
But then, if he is actually going to have a row vector, t() is needed - 
and one may want to answer the OP who may not read this list ....

Best,
Uwe Ligges