Description Usage Arguments Value Author(s) References
Compare two vectors treating NA
like any other value.
If both vectors have an NA
for that element, the function returns TRUE
,
if one has an NA
and the other does not, it returns FALSE
.
1 | is_same(x, y)
|
x, y |
vectors to compare |
A logical vector: TRUE
if both vectors have the same value, including
NA
, and FALSE
, if they differ.
Winston Chang
http://www.cookbook-r.com/Manipulating_data/Comparing_vectors_or_factors_with_NA/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.