<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(116,27,71)"><br clear="all"></div><div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(116,27,71)">Prezados, eu tenho um data frame assim</div>
<div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(116,27,71)"><br></div><div class="gmail_default"><font face="verdana, sans-serif" color="#000000">cap=c("A1","A3","B2","B5","C6","C8","D4","F5","G8","H1","K9","A1","A3","B2","B5","C6","C8","D4","F5","G8","H1","K9")</font></div>
<div class="gmail_default"><font face="verdana, sans-serif" color="#000000">Var1=c("nao","nao","nao","nao","nao","nao","nao","nao","nao","nao","nao",</font></div>
<div class="gmail_default"><font face="verdana, sans-serif" color="#000000"> "sim","sim","sim","sim","sim","sim","sim","sim","sim","sim","sim")</font></div>
<div class="gmail_default"><font face="verdana, sans-serif" color="#000000">Var2=c(2,5,7,4,1,2,4,8,9,6,7,4,5,3,2,4,5,8,7,0,1,1)</font></div><div class="gmail_default"><font face="verdana, sans-serif" color="#000000">df=cbind(cap,Var1,Var2)</font></div>
<div class="gmail_default"><font face="verdana, sans-serif" color="#000000">df=as.data.frame(df)</font></div><div class="gmail_default"><font face="verdana, sans-serif" color="#000000">df</font></div><div class="gmail_default">
<font face="verdana, sans-serif" color="#000000"><br></font></div><div class="gmail_default"><font face="verdana, sans-serif"><div class="gmail_default"><font color="#000000"> cap Var1 Var2</font></div><div class="gmail_default">
<font color="#000000">1 A1 nao 2</font></div><div class="gmail_default"><font color="#000000">2 A3 nao 5</font></div><div class="gmail_default"><font color="#000000">3 B2 nao 7</font></div><div class="gmail_default">
<font color="#000000">4 B5 nao 4</font></div><div class="gmail_default"><font color="#000000">5 C6 nao 1</font></div><div class="gmail_default"><font color="#000000">6 C8 nao 2</font></div><div class="gmail_default">
<font color="#000000">7 D4 nao 4</font></div><div class="gmail_default"><font color="#000000">8 F5 nao 8</font></div><div class="gmail_default"><font color="#000000">9 G8 nao 9</font></div><div class="gmail_default">
<font color="#000000">10 H1 nao 6</font></div><div class="gmail_default"><font color="#000000">11 K9 nao 7</font></div><div class="gmail_default"><font color="#000000">12 A1 sim 4</font></div><div class="gmail_default">
<font color="#000000">13 A3 sim 5</font></div><div class="gmail_default"><font color="#000000">14 B2 sim 3</font></div><div class="gmail_default"><font color="#000000">15 B5 sim 2</font></div><div class="gmail_default">
<font color="#000000">16 C6 sim 4</font></div><div class="gmail_default"><font color="#000000">17 C8 sim 5</font></div><div class="gmail_default"><font color="#000000">18 D4 sim 8</font></div><div class="gmail_default">
<font color="#000000">19 F5 sim 7</font></div><div class="gmail_default"><font color="#000000">20 G8 sim 0</font></div><div class="gmail_default"><font color="#000000">21 H1 sim 1</font></div><div class="gmail_default">
<font color="#000000">22 K9 sim 1</font></div><div><br></div></font></div><div class="gmail_default"><font color="#741b47" face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font color="#741b47" face="verdana, sans-serif">E gostaria que ficasse ass</font><span style="color:rgb(116,27,71);font-family:verdana,sans-serif">im:</span></div>
<div class="gmail_default"><span style="color:rgb(116,27,71);font-family:verdana,sans-serif"><br></span></div><div class="gmail_default"><font face="verdana, sans-serif" color="#000000">cap=c("A1","A3","B2","B5","C6","C8","D4","F5","G8","H1","K9")</font></div>
<div class="gmail_default"><font face="verdana, sans-serif" color="#000000">Var1=c("nao","nao","nao","nao","nao","nao","nao","nao","nao","nao","nao")</font></div>
<div class="gmail_default"><font face="verdana, sans-serif" color="#000000">Var2=c(2,5,7,4,1,2,4,8,9,6,7)</font></div><div class="gmail_default"><font face="verdana, sans-serif" color="#000000">Var3=c("sim","sim","sim","sim","sim","sim","sim","sim","sim","sim","sim")</font></div>
<div class="gmail_default"><font face="verdana, sans-serif" color="#000000">Var4=c(4,5,3,2,4,5,8,7,0,1,1)</font></div><div class="gmail_default"><font face="verdana, sans-serif" color="#000000">df=cbind(cap,Var1,Var2,Var3,Var4)</font></div>
<div class="gmail_default"><font face="verdana, sans-serif" color="#000000">df=as.data.frame(df)</font></div><div class="gmail_default"><font face="verdana, sans-serif" color="#000000">df</font></div><div class="gmail_default">
<font color="#000000"><span style="font-family:verdana,sans-serif"></span><font face="verdana, sans-serif"> cap Var1 Var2 Var3 Var4</font></font></div><div class="gmail_default"><font face="verdana, sans-serif" color="#000000">1 A1 nao 2 sim 4</font></div>
<div class="gmail_default"><font face="verdana, sans-serif" color="#000000">2 A3 nao 5 sim 5</font></div><div class="gmail_default"><font face="verdana, sans-serif" color="#000000">3 B2 nao 7 sim 3</font></div>
<div class="gmail_default"><font face="verdana, sans-serif" color="#000000">4 B5 nao 4 sim 2</font></div><div class="gmail_default"><font face="verdana, sans-serif" color="#000000">5 C6 nao 1 sim 4</font></div>
<div class="gmail_default"><font face="verdana, sans-serif" color="#000000">6 C8 nao 2 sim 5</font></div><div class="gmail_default"><font face="verdana, sans-serif" color="#000000">7 D4 nao 4 sim 8</font></div>
<div class="gmail_default"><font face="verdana, sans-serif" color="#000000">8 F5 nao 8 sim 7</font></div><div class="gmail_default"><font face="verdana, sans-serif" color="#000000">9 G8 nao 9 sim 0</font></div>
<div class="gmail_default"><font face="verdana, sans-serif" color="#000000">10 H1 nao 6 sim 1</font></div><div class="gmail_default"><font face="verdana, sans-serif" color="#000000">11 K9 nao 7 sim 1</font></div>
<div><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(116,27,71)">Alguém poderia me ajudar?</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(116,27,71)">
Obrigada</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(116,27,71)">Fátima</div><br></div>-- <br><div dir="ltr"><div><span style="color:rgb(103,78,167);font-family:'comic sans ms',sans-serif">"Minha felicidade depende da qualidade dos meus pensamentos"</span><br>
</div></div>
</div>