Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mR

Mean One-Point Moving Range


Description

Calculates the mean one-point moving range used when constructing a moving-range chart.

Usage

mR(y, na.rm = TRUE, ...)

Arguments

y

Vector of values

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

...

further arguments passed to or from other methods.

Value

A number; mean one-point moving range.

Examples

set.seed(5555)
values <- rnorm(n = 100, mean = 25, sd = 1)
mR(values)

ggQC

Quality Control Charts for 'ggplot'

v0.0.31
GPL-3 | file LICENSE
Authors
Kenith Grey
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.