On Thu, 12 May 2022 19:31:51 +0000 "Sorkin, John" <jsor...@som.umaryland.edu> wrote:
> > mean(mlagFZ1,mlagFZ2,mlagFZ3) > [1] -0.3326792 match.call(mean.default, quote(mean(mlagFZ1, mlagFZ2, mlagFZ3))) # mean(x = mlagFZ1, trim = mlagFZ2, na.rm = mlagFZ3) mean() takes a vector to compute a mean of and additional arguments, unlike sum(), which takes ... (almost arbitrary arguments) and sums all of them. Unfortunately, the "trim" argument is documented to accept any number and the na.rm argument is silently reinterpreted as logical in your case. -- Best regards, Ivan ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.