Skip to content
Prev 350522 / 398503 Next

Stacking of vectors to form a column vector

Hi Olufemi,
I sounds like you have a data frame (let's call it "mydata") with at
least three elements (columns). You may be trying to use c() in this
way:

y1to3<-c(y1,y2,y3)

in which case it won't work. However:

y1to3<-c(mydata$y1,mydata$y2,mydata$y3)

might do what you want, substituting whatever the name of your data
frame is for "mydata".

Jim


On Thu, Apr 30, 2015 at 1:20 PM, Jeff Newmiller
<jdnewmil at dcn.davis.ca.us> wrote: