Variable Number of Arguments mean.of.all <- function(…) mean(c(…)) mean.of.all(1:10,20:100,12:14) mean.of.means <- function(…){ means <- numeric() means <- numeric() for(x in list(…)) means <- c(means,mean(x)) for(x in list(…)) means <- c(means,mean(x)) mean(means) mean(means)}
{}