Description Usage Arguments Examples
returns max(x[(i - k):(i + k)])
for i = 1,...,n
or (min(...))
1 | GetWindowExtremes(x, k, type = c("max", "min"))
|
x |
numeric data vector |
k |
integer window size (use e.g. 2L) |
type |
string type of extreme |
1 2 3 | x <- c(1, 2, 3, 2, 5, 0, 2, 3, 8)
GetWindowExtremes(x, 2L, "max")
GetWindowExtremes(x, 2L, "min")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.