Re: [R] Reshaping from long to wide with duplicate idvar and timevar

2017-03-14 Thread PIKAL Petr
3:45 AM > To: r-help@r-project.org > Subject: [R] Reshaping from long to wide with duplicate idvar and timevar > > Hi, > > I would like to reshape a data.frame from long to wide format. However, the > reshape function does not seem to accept data containing rows with > duplica

[R] Reshaping from long to wide with duplicate idvar and timevar

2017-03-13 Thread Sebastien Bihorel
Hi, I would like to reshape a data.frame from long to wide format. However, the reshape function does not seem to accept data containing rows with duplicate idvar and timevar. Building upon the ?reshape example: summary(Indometh) wide <- reshape(Indometh, v.names = "conc", idvar = "Subject",