Re: [R] do.call and applying na.rm=TRUE

2011-05-12 Thread Jonathan Daily
?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

[R] do.call and applying na.rm=TRUE

2011-05-12 Thread John Kerpel
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