Re: [R] questions on unstack()

2010-10-18 Thread Henrique Dallazuanna
Try this: data.frame(split(x$Jem, factor(x$name, levels = unique(x$name))), check.names = FALSE) third question: unstack(x, as.formula(sprintf('%s ~ name', wantedName))) On Mon, Oct 18, 2010 at 12:47 PM, wrote: > Folks, > > I have the following dataframe: > > > x <- structure(list(name = c(

[R] questions on unstack()

2010-10-18 Thread Murali.Menon
Folks, I have the following dataframe: > x <- structure(list(name = c("EU B", "EU B", "EU B", "EU B", "EU B", "EU B", "AU A", "AU A", "AU A", "AU A", "AU A", "AU A"), date = c("2010-10-11", "2010-10-12", "2010-10-13", "2010-10-14", "2010-10-15", "2010-10-18", "2010-10-11", "2010-10-12", "2010-