[R] Reshape2 sytax

2011-08-08 Thread Bruce Miller
Hi Hadley et all, I am struggling with reshape2 and melt works and melt_check (filtered151) seems fine My cast command was acast (filtered151, Time ~ Species ~ Number) melt_check (filtered151) Using time, Species as id variables $id [1] timeSpecies $measure [1] Number When I execute

Re: [R] Reshape2 sytax

2011-08-08 Thread Dennis Murphy
Hi: Here are two ways you could do this, one using dcast() and one using xtabs(): batdat - structure(list(Time = structure(c(1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 5L, 5L, 5L, 5L, 6L, 6L, 6L, 6L), .Label = c(0:00, 0:15, 0:30, 0:45, 1:00, 1:15 ), class = factor), Label =