?do.call
Second argument is a list of arguments to pass. Try do.call(mean,
list(x, na.rm = T))
On Thu, May 12, 2011 at 1:57 PM, John Kerpel wrote:
> Hi all! I need to do something really simple using do.call.
>
> If I want to call the mean function inside do.call, how do I apply the
> condition
Hi all! I need to do something really simple using do.call.
If I want to call the mean function inside do.call, how do I apply the
condition na.rm=TRUE?
So, I use do.call(mean, list(x)) where x is my data. This works fine if
there are no NAs.
Thanks,
John
[[alternative HTML version d
2 matches
Mail list logo