Re: [R] FW: Help on reshape2 data frame rearrangement

2011-08-08 Thread Joshua Wiley
Hi BJ, Is this what you want? Data1 <- structure(list(Site = structure(c(1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L), .Label = c("Site1", "Site2"), class = "factor"), Fish_no = structure(c(1L, 2L, 3L, 4L, 1L, 2L, 3L, 4L), .Label = c("Fish1", "Fish2", "Fish3", "Fish4"), class = "factor"), Length = c(10L, 13L,

[R] FW: Help on reshape2 data frame rearrangement

2011-08-08 Thread B Jessop
Help-list, Sorry about the formatting problem, Josh. The following example data set(minor difference from original) in plain text should make the problem clear. Original data format: Site Fish_no Length Site1Fish110 Site1Fish213 Site1Fish314 Site1