last_value | R Documentation |
Find the last value of a vector. By default, will take the last non-NA value.
last_value(x, na.rm = T)
x |
(a vector) A vector. |
na.rm |
(log scalar) Whether to ignore missing values (default yes). |
The last value (scalar).
last_value(1:3)
last_value(c(1:3, NA))
last_value(rep(NA, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.