[R] Finding the mean.
elliot.welch at virgin.net
elliot.welch at virgin.net
Sat Mar 10 20:47:23 CET 2012
Using functions how would I go about do this question?
(I already have a mean defined for a function of x.)
Write a function called MyMean2. This function has two arguments, x and nonzero, where nonzero has the default value TRUE. This function should return the
(Previous defined mean of x) if nonzero=FALSE
(Previous defined mean of x) for all x's>0 if nonzero=TRUE
Much appreciated.
elliot.welch at virgin.net
Sent from my BlackBerry® smartphone
More information about the R-help
mailing list