Skip to content
Prev 274564 / 398506 Next

question: ragged array

if you set parameter simplify=TRUE, it returns a vector of the ragged
mean. In your case,

mean_rating <- tapply(ratok$value, ratok$project_id , mean,simplify = TRUE)

df<-data.frame(ID=dimnames(mean_rating)[[1]], mean=mean_rating)

Weidong Gu

On Sun, Oct 16, 2011 at 9:53 AM, Helene Schreyer
<helene.schreyer at gmail.com> wrote: