Dear list,
I found an odd behavior of the mean function; it is allowed to do
something that you probably shouldn't:
If you calculate mean() of a sequence of numbers (without declaring them
as vector), mean() then just computes mean() of the first element. Is
there a reason why there is no warning, like in sd for example?
Example code:
mean(1,2,3,4)
sd(1,2,3,4)
Best regards
Christian
______________________________________________
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.