EVOLUTION-MANAGER
Edit File: vec_equal.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Equality</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for vec_equal {vctrs}"><tr><td>vec_equal {vctrs}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Equality</h2> <h3>Description</h3> <p><code>vec_equal()</code> tests if two vectors are equal. </p> <h3>Usage</h3> <pre> vec_equal(x, y, na_equal = FALSE, .ptype = NULL) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x, y</code></td> <td> <p>Vectors with compatible types and lengths.</p> </td></tr> <tr valign="top"><td><code>na_equal</code></td> <td> <p>Should <code>NA</code> values be considered equal?</p> </td></tr> <tr valign="top"><td><code>.ptype</code></td> <td> <p>Override to optionally specify common type</p> </td></tr> </table> <h3>Value</h3> <p>A logical vector the same size as the common size of <code>x</code> and <code>y</code>. Will only contain <code>NA</code>s if <code>na_equal</code> is <code>FALSE</code>. </p> <h3>Dependencies</h3> <ul> <li> <p><code><a href="vec_cast.html">vec_cast_common()</a></code> with fallback </p> </li> <li> <p><code><a href="vec_recycle.html">vec_recycle_common()</a></code> </p> </li> <li> <p><code><a href="vec_proxy_equal.html">vec_proxy_equal()</a></code> </p> </li></ul> <h3>See Also</h3> <p><code><a href="missing.html">vec_detect_missing()</a></code> </p> <h3>Examples</h3> <pre> 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)) </pre> <hr /><div style="text-align: center;">[Package <em>vctrs</em> version 0.5.0 <a href="00Index.html">Index</a>]</div> </body></html>