Scientific Calculator
silentmatt/average
Calculate the average (mean) of a list of numbers
Tagged:
avg = function(list) {
apply(:+, list) / len list;
};
Calculate the average (mean) of a list of numbers
Tagged:
avg = function(list) {
apply(:+, list) / len list;
};
0 Comments
Sign in to leave a comment