Re: [R] re-arranging rows in data frame

2012-03-26 Thread R. Michael Weylandt
library(reshape2) x <- structure(list(ExpName = structure(c(1L, 1L, 1L, 1L, 2L, 2L, 2L, 3L, 3L), .Label = c("MM1-x1", "MM1-X2", "MMX-X3"), class = "factor"), Identifier = structure(c(1L, 2L, 3L, 4L, 1L, 2L, 4L, 1L, 2L), .Label = c("GSK", "GSK2", "GSK3", "GSK4"), class = "factor"), valu

[R] re-arranging rows in data frame

2012-03-26 Thread Srinivas Iyyer
Hi: sorry for asking simple question (not simple for me though). I have a data frame something like this: ExpName Identifier value MM1-x1 GSK 0.02 MM1-x1 GSK2 0.001 MM1-x1 GSK3 0.04 MM1-x1 GSK4 0.1 MM1-X2 GSK 0.4 MM1-X2 GSK2 0.1 MM1-X2 GSK4 0.002 MMX-X3 GSK 0.4 MMX-X3 GSK2 0.23 I am