vec_equal | R Documentation |
vec_equal()
tests if two vectors are equal.
vec_equal(x, y, na_equal = FALSE, .ptype = NULL)
x , y |
Vectors with compatible types and lengths. |
na_equal |
Should |
.ptype |
Override to optionally specify common type |
A logical vector the same size as the common size of x
and y
.
Will only contain NA
s if na_equal
is FALSE
.
vec_cast_common()
with fallback
vec_recycle_common()
vec_proxy_equal()
vec_detect_missing()
vec_equal(c(TRUE, FALSE, NA), FALSE)
vec_equal(c(TRUE, FALSE, NA), FALSE, na_equal = TRUE)
vec_equal(5, 1:10)
vec_equal("d", letters[1:10])
df <- data.frame(x = c(1, 1, 2, 1), y = c(1, 2, 1, NA))
vec_equal(df, data.frame(x = 1, y = 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.