找到2个向量之间的差异

时间:2017-05-02 06:42:12

标签: r match set-difference

要找到2个向量之间的差异 - 提到的答案之一是:

<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Chosen: A jQuery Plugin by Harvest to Tame Unwieldy Select Boxes</title> <link rel="stylesheet" href="docsupport/style.css"> <link rel="stylesheet" href="docsupport/prism.css"> <link rel="stylesheet" href="chosen.css"> <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' https://ajax.googleapis.com; style-src 'self'; img-src 'self' data:"> </head> <body> <form> <div id="container"> <div id="content"> <div class="side-by-side clearfix"> </div> <div class="side-by-side clearfix"> <div> <em>Into This</em> <select data-placeholder="Choose a Country..." class="chosen-select" multiple tabindex="4"> <option value=""></option> <option value="United States">United States</option> <option value="United Kingdom">United Kingdom</option> <option value="Western Sahara">Western Sahara</option> <option value="Yemen">Yemen</option> <option value="Zambia">Zambia</option> <option value="Zimbabwe">Zimbabwe</option> </select> </div> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.js" type="text/javascript"></script> <script src="chosen.jquery.js" type="text/javascript"></script> <script src="docsupport/prism.js" type="text/javascript" charset="utf-8"></script> <script src="docsupport/init.js" type="text/javascript" charset="utf-8"></script> </form> </body> </html>

x[is.na(match(x,y))]

有人可以详细解释这个答案吗?

1 个答案:

答案 0 :(得分:0)

将其分解为步骤,

{{1}}