Furthermore, aggregate passes extra arguments to FUN, so explicit
declaration of na.rm = T can be done in the call to aggregate
directly:
aggregate(cbind(v1, v2) ~ v3, data = testDF, FUN = mean, na.rm = T)
HTH,
Jon
On Tue, May 17, 2011 at 5:22 AM, Jannis wrote:
> Andy,
>
>
> have a look at ?mea
Andy,
have a look at ?mean. The na.omit argument set to TRUE should solve your
problem. The use in aggregate would be something like:
aggregate(x = testDF, by = list(testDF$v3), FUN = function(x)
mean(x,na.rm=TRUE))
HTH
Jannis
On 05/17/2011 04:27 AM, Andrew McFadden wrote:
Hi R users
Hi R users
I trying to some aggregate statistics on a very large dataset. The null
values are causing a problem. I would like to calculate aggregate values
for groups. I am just no sure how to deal with the "" I would ideally
like them to ignored ie if there is only 1 value over several columns
th
3 matches
Mail list logo