<div dir="ltr">Oi, Adriele!<div><br></div><div><div>library( dplyr )</div><div>C <- inner_join( A, B, by = c( "x", "y" ) ) %>%</div><div> select( x, y, z = z.x )</div></div><div><br></div><div>A primeira função faz a "junção" (JOIN) que você quer, depois o select "seleciona" e renomeia as colunas para já deixar a saída como você precisa.</div><div><br></div><div>De qualquer forma, sugiro que veja as funções da "família" join do dplyr para ver se é isso o que precisa. Mas tem uma img que vale por qualquer explicação para ajudar a escolher os joins:</div><div><a href="https://www.codeproject.com/KB/database/Visual_SQL_Joins/Visual_SQL_JOINS_orig.jpg">https://www.codeproject.com/KB/database/Visual_SQL_Joins/Visual_SQL_JOINS_orig.jpg</a><br></div><div><br></div><div>São as funções de JOIN de bancos de dados relacionais, mas o raciocínio é o mesmo.</div><div><br></div><div>Abs,</div><div>Karina</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Feb 10, 2017 at 6:08 PM Adriele Giaretta Biase via R-br <<a href="mailto:r-br@listas.c3sl.ufpr.br">r-br@listas.c3sl.ufpr.br</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><p class="MsoNormal gmail_msg">Pessoal, boa tarde!<span class="gmail_msg"></span></p>
<p class="MsoNormal gmail_msg">eu preciso comparar duas matrizes de dados (A e B) , que
possuem três colunas (x, y, z). <span class="gmail_msg"></span></p>
<p class="MsoNormal gmail_msg">O número de linhas matriz A é superior que o número de
linhas da matriz B. <span class="gmail_msg"></span></p>
<p class="MsoNormal gmail_msg">As duas matrizes A e B possuem as colunas x e y com valores iguais,
ressalvo que na matriz A, existe um número de linhas maior que na matriz B. <span class="gmail_msg"></span></p>
<p class="MsoNormal gmail_msg">Nunca existirá linhas com valores exatamente iguais,
considerando a combinação entre x e y, respectivamente.<span class="gmail_msg"></span></p>
<p class="MsoNormal gmail_msg">Eu gostaria de saber como obter uma nova matriz C, que
remova da matriz A, as linhas que não estão na matriz B, obtendo as mesmas
colunas x, y e z, respectivamente.<span class="gmail_msg"></span></p>
<p class="MsoNormal gmail_msg">Didaticamente, eu queria obter a seguinte matriz C, com as linhas com os valores comuns entre A e B (das colunas x e y), ressalvando respectivamente
os valores de z da planilha original A.<span class="gmail_msg"></span></p>
<table class="m_-4465781549393913227gmail-MsoTableGrid gmail_msg" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none">
<tbody class="gmail_msg"><tr class="gmail_msg">
<td width="192" valign="top" style="width:144.05pt;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">A=<span class="gmail_msg"></span></p>
<table class="m_-4465781549393913227gmail-MsoTableGrid gmail_msg" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none">
<tbody class="gmail_msg"><tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">x<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:1pt solid windowtext;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">y<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:1pt solid windowtext;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">z<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">1<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">1<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2.3<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">1<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">1.4<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">3<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">1<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2.5<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">1<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">7.8<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">9.1<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">3<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">0<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">1<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">3<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">3<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">4.5<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">3<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">3<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">8<span class="gmail_msg"></span></p>
</td>
</tr>
</tbody></table>
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal"><span class="gmail_msg"></span></p>
</td>
<td width="192" valign="top" style="width:144.05pt;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">B=<span class="gmail_msg"></span></p>
<table class="m_-4465781549393913227gmail-MsoTableGrid gmail_msg" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none">
<tbody class="gmail_msg"><tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">x<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:1pt solid windowtext;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">y<span class="gmail_msg"></span></p>
</td>
<td width="48" valign="top" style="width:35.8pt;border-top:1pt solid windowtext;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">z<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">1<span class="gmail_msg"></span></p>
</td>
<td width="48" valign="top" style="width:35.8pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">7<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">3<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">1<span class="gmail_msg"></span></p>
</td>
<td width="48" valign="top" style="width:35.8pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">6.3<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">1<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="48" valign="top" style="width:35.8pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">9<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="48" valign="top" style="width:35.8pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">7.4<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">3<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="48" valign="top" style="width:35.8pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">13.5<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">3<span class="gmail_msg"></span></p>
</td>
<td width="48" valign="top" style="width:35.8pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">12<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">3<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">3<span class="gmail_msg"></span></p>
</td>
<td width="48" valign="top" style="width:35.8pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">11<span class="gmail_msg"></span></p>
</td>
</tr>
</tbody></table>
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal"><span class="gmail_msg"></span></p>
</td>
<td width="192" valign="top" style="width:144.1pt;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">C=<span class="gmail_msg"></span></p>
<table class="m_-4465781549393913227gmail-MsoTableGrid gmail_msg" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none">
<tbody class="gmail_msg"><tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">x<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:1pt solid windowtext;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">y<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:1pt solid windowtext;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">z<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">1<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">1.4<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">3<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">1<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2.5<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">1<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">7.8<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">9.1<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">3<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">0<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">2<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">3<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">4.5<span class="gmail_msg"></span></p>
</td>
</tr>
<tr class="gmail_msg">
<td width="29" valign="top" style="width:21.9pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">3<span class="gmail_msg"></span></p>
</td>
<td width="29" valign="top" style="width:21.9pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">3<span class="gmail_msg"></span></p>
</td>
<td width="40" valign="top" style="width:30.25pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt" class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal">8<span class="gmail_msg"></span></p>
</td>
</tr>
</tbody></table>
<p class="MsoNormal gmail_msg" style="margin-bottom:0.0001pt;line-height:normal"><span class="gmail_msg"></span></p>
</td>
</tr>
</tbody></table>
<p class="MsoNormal gmail_msg"><span class="gmail_msg"> </span></p>
<p class="MsoNormal gmail_msg">Agradeço de alguém puder me ajudar, caso já tenha alguma
função no R, que faça isso.<span class="gmail_msg"></span></p><p class="MsoNormal gmail_msg"><br class="gmail_msg"></p>
<p class="MsoNormal gmail_msg">A função <b class="gmail_msg"><span style="font-family:dejavusans-bold;color:rgb(0,0,10)" class="gmail_msg">match(x,y) </span></b>funciona
se for apenas com vetor (uma coluna apenas).<span class="gmail_msg"></span></p><p class="MsoNormal gmail_msg"><br class="gmail_msg"></p>
<p class="MsoNormal gmail_msg" style="text-align:justify"><b class="gmail_msg">match(x,y):</b> ele cruza o vetor x com o vetor y. Ele retorna um vetor
do tamanho de x, informando o índice em y no qual se encontram os elementos de
x. Caso contrário, ele informa NA.<span class="gmail_msg"></span></p><div class="gmail_msg"><br class="gmail_msg"></div>-- <br class="gmail_msg"><div class="m_-4465781549393913227gmail_signature gmail_msg"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div style="font-family:times,serif;margin:0cm 0cm 0.0001pt;font-size:16px" class="gmail_msg"><span style="white-space:pre-wrap" class="gmail_msg"> </span>Adriele Giaretta Biase.</div><div style="font-family:times,serif;margin:0cm 0cm 0.0001pt;font-size:16px" class="gmail_msg"><span style="white-space:pre-wrap" class="gmail_msg"> </span>Mestre em Estatística e Experimentação Agropecuária - UFLA. <br class="gmail_msg"><span style="white-space:pre-wrap" class="gmail_msg"> </span>Doutora em Estatística e Experimentação Agronômica - ESALQ/ USP</div><div style="font-family:times,serif;margin:0cm 0cm 0.0001pt;font-size:16px" class="gmail_msg"><span style="font-size:12pt;white-space:pre-wrap" class="gmail_msg"> </span><span style="font-size:12pt" class="gmail_msg">Contato: <a href="tel:(19)%2098861-0619" value="+5519988610619" class="gmail_msg" target="_blank">(19) 98861-0619</a>.</span></div></div></div></div></div></div>
</div>
_______________________________________________<br class="gmail_msg">
R-br mailing list<br class="gmail_msg">
<a href="mailto:R-br@listas.c3sl.ufpr.br" class="gmail_msg" target="_blank">R-br@listas.c3sl.ufpr.br</a><br class="gmail_msg">
<a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" rel="noreferrer" class="gmail_msg" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br class="gmail_msg">
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" rel="noreferrer" class="gmail_msg" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.</blockquote></div>