[R] Odp: Matrix to Vector
Petr PIKAL
petr.pikal at precheza.cz
Wed Jun 16 09:41:06 CEST 2010
Hi
r-help-bounces at r-project.org napsal dne 15.06.2010 19:51:39:
> 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?
Perhaps read docs for matrix, vector, transpose, stack and maybe check
Rintro docs for data manipulation?
Petr
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list