Averages/Root mean square: Difference between revisions
Content added Content deleted
m (→{{header|R}}) |
m (→{{header|R}}) |
||
Line 1,756: | Line 1,756: | ||
The following function works for any vector x: |
The following function works for any vector x: |
||
<lang |
<lang rsplus>RMS <- function(x, na.rm = F) sqrt(mean(x^2, na.rm = na.rm)) |
||
RMS(1:10) |
RMS(1:10) |