are_identical | R Documentation |
Extensions for the use of base::identical()
are_identical(..., params = NULL)
... |
Vectors of values to compare, element-wise of equal length |
params |
Additional params (as a named list of arguments for base::identical) |
A logical
vector of TRUE
/FALSE
of equal length of each ...
vector
x <- y <- z <- 1:5
y[2] <- 3L
z[5] <- NA_integer_
identical(x, y) # compare entire vector
are_identical(x, y) # element-wise
are_identical(x, y, z) # 3 or more vectors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.