Skip to content

problem with unlist

1 message · Liaw, Andy

#
Why not just do:

tapply(y, list(g1, g2, ...), function(x) c(mean=mean(x, na.rm=TRUE),
sd=sd(x, na.rm=TRUE), n=sum(!is.na(x))))

??

Andy
------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments,...{{dropped}}