# Generate 2 simple matrices
a = matrix(c(1:12), 3, 4);
b = a+ 1;
c = a + 2;
# Set the colnames on matrix a
colnames(a) = spaste("col_", c(1:4));
# Example use
pquantile(prob = 0.5, a, b, c)
pmean(a,b,c)
pmedian(a,b,c)
Run the code above in your browser using DataLab