Spread the love

### Question Description

A very brief question.

After much searching I couldn’t find a function to calculate the RMS of a set of integers. Does such a function exist in R?

### Practice As Follows

I didn’t search for a function but you can write it

```
x <- 1:10
sqrt(sum(x^2)/length(x))
6.204837
```

A better alternative is using `mean`

function

```
> sqrt(mean(x^2))
[1] 6.204837
```