[R] Matrix to Vector

Erik Iverson eriki at ccbr.umn.edu
Tue Jun 15 21:27:02 CEST 2010



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

Yes, specify your problem with reproducible R code, so we can help you.



More information about the R-help mailing list