[R] plyr and table question
ts8
tshort at epri.com
Fri Apr 3 15:08:12 CEST 2009
baptiste auguie-2 wrote:
>
>
> ddply(d, .(website), transform, count = table(user_id)) # why two new
> columns?
>
>
Try this to see why:
as.data.frame(table(d$user_id))
This works more like you expect:
ddply(d, .(website), transform, count = unclass(table(user_id)))
- Tom
--
View this message in context: http://www.nabble.com/plyr-and-table-question-tp22865174p22868047.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list