mean is a function S3 that takes a single main argument, which is a single object R (most often a vector) of quantities, and any other arguments are passed to other methods through ... In this case, they are passed to mean.default , which has two additional named arguments, trim and na.rm Therefore, your second value will be interpreted as the sum of the trim (although you cannot trim a single value).
What do you want to print:
mean(c(m1, m2)) [1] 0.5224847
James source share