[R] function 2 convert matrix to long-format?

Witold E Wolski wewolski at gmail.com
Wed Jul 24 12:03:22 CEST 2013


RECALL : found the answer:
use aggregate instead of tapply

thx

On 24 July 2013 12:00, Witold E Wolski <wewolski at gmail.com> wrote:
> I would like to convert this (output of tapply)
> , , minus
>
>        B6      S9
> T0 0.1416 0.12235
> T1 0.1049 0.11890
> T2 0.1328 0.15510
>
> , , plus
>
>         B6      S9
> T0 0.14225 0.16875
> T1 0.09295 0.09900
> T2 0.13350 0.14560
>
> to long-format :
>
> T0 B6 minus 0.1416
> T0 S9 minus 0.12235
> T0 B6 plus 0.14225
> T0 S9 plus 0.16875
> ....
> ...
>
>
> whats the default way in R?
>
> best
>
>
>
>
> --
> Witold Eryk Wolski



-- 
Witold Eryk Wolski



More information about the R-help mailing list