is_constant | R Documentation |
Check if vector is constant
is_constant(x, skip_missing = FALSE)
x |
Vector: Input |
skip_missing |
Logical: If TRUE, skip NA values before testing |
E.D. Gennatas
## Not run:
x <- rep(9, 1000000)
is_constant(x)
x[10] <- NA
is_constant(x)
is_constant(x, skip_missing = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.