Re: [R] Matrix to Vector

From: Sarah Goslee <>
Date: Tue, 15 Jun 2010 15:17:56 -0400

How about:


I'm not sure transposing is really needed, but without a workable example as requested in the posting guide (hint, hint), it's hard to say for certain.


On Tue, Jun 15, 2010 at 1:51 PM, George Coyle <> wrote:
> Hi All,
> I am trying to turn a Matrix into a vector for analysis purposes.  I need to
> select only certain columns from the entire matrix for the vector (intraday
> time intervals).  Also I need to transpose the Matrix (so times are in rows)
> stack each successive new column on top of each other (latest at the top
> creating one long vector vs a matrix) then reassign the date to the left of
> each time (right now date is only shown once by row and will be in columns
> when transposed).  Any thoughts?

Sarah Goslee

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 15 Jun 2010 - 19:25:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 15 Jun 2010 - 19:40:31 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive