dunn.test

How to convert an object with melt keeping the row-column names?

纵饮孤独 提交于 2019-12-23 04:21:20
问题 I want to convert a dunn.test output with the melt function from the reshape2 package, but I lose the pairwise group names. How to keep them in the "melted" data frame? Using the melt for the pairwise.wilcox.test output, with the code: pw <- pairwise.wilcox.test(tabel2$RS.14_2, tabel2$lot, p.adj = "bonf") melt(pw[[3]]) outputs the next result: Var1 Var2 value 1 3StL 1StL NaN 2 IP 1StL 6,930275e-36 3 ISR 1StL 5,929457e-21 4 ISU 1StL 3,427444e-33 5 StM 1StL 1,506569e-06 6 3StL 3StL NA 7 IP 3StL