Re: [R] How to group data by day

2011-02-16 Thread Michela Ferron
Many thanks Mikhail, aggregate() is fine! Il 14/02/2011 20.42, Mikhail Titov ha scritto: It depends what would you like to get at the end. Perhaps you don't necessary need this type of numbering. For instance, if you'd like to calculate daily average. london$id<- as.Date(london$id) For sum by

Re: [R] How to group data by day

2011-02-14 Thread Mikhail Titov
It depends what would you like to get at the end. Perhaps you don't necessary need this type of numbering. For instance, if you'd like to calculate daily average. london$id <- as.Date(london$id) For sum by day you could use, let's say, this aggregate(words~id,london,FUN=sum) If you really want