blockMax | R Documentation |
Compute block maxima of a vector
blockMax(x, blockSize, overlap = 0, type = "C++", na.rm = FALSE)
x |
Vector that is split into blocks |
blockSize |
Integer, size of each block. |
overlap |
Integer, number of overlapping data points. |
type |
Toggle between C++ ("C++") and R ("R"), see chunk. |
na.rm |
Boolean, is passed on to max |
Returns List, with the maximum per block (blockMax) and an indicator if chunk has produced NaN values. Then the index of the first NaN (firstNaN) is returned. This happens if the blockSize does not divide the length of x without remainder; see chunk.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.