Is it possible to have multiple variables for a function in R

Advertisements I am working on a function where I want to test normality of three time series. I have created the following function: par(mfrow = c(3,2)) graphicalnormality = function(x){ plotNormalHistogram(x) normstats = c(mean(x), median(x), quantile(x, c(0.1, 0.9))) abline(v = normstats, col = ‘red’, lwd = 2) qqnorm(x) qqline(x) } graphicalnormality(OBX) graphicalnormality(DNB) graphicalnormality(DNO) It is a… Read More Is it possible to have multiple variables for a function in R