omit_dips | R Documentation |
Replace element with NA if it is less than the elements before and after it
omit_dips(vec)
vec |
(Numeric) A vector. |
A Numeric vector.
Desi Quintans (http://www.desiquintans.com)
tree_height_per_month <- c(1, 2, 3, 2, 4, 7, 7, 8)
omit_dips(tree_height_per_month)
#> [1] 1 2 3 NA 4 7 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.