Skip to content
Prev 256350 / 398506 Next

By function

Hello

On Fri, Apr 8, 2011 at 12:38 AM, Raoni Rodrigues
<caciquesamurai at gmail.com> wrote:
The CSV didn't get through so it's difficult to replicate your
example. Please post the output of:
str(cpue)
[..]
statement you use the entire df (cpue) and not the subset (x). Try
this:
by (cpue, cpue$Date, function (x) sum (x$N)/length(x$Fisherman))
It is often a good a idea to post the output of
sessionInfo()

Regards
Liviu