<div dir="ltr"><div>Desculpe, corrigindo...</div><div><br></div><div><font face="monospace, monospace">### <code r></font></div><div><font face="monospace, monospace">a<-c("B095","B096","B784","B561","N590","N980","N067","C678","C234","C009","B095",</font></div><div><font face="monospace, monospace"> "B561","N980","N980","C234","C009")</font></div><div><font face="monospace, monospace">b<-c("Maria","Paola","José","Pedro","Kleber","Henrique","Marcelo","João","Lia",</font></div><div><font face="monospace, monospace"> "Ingrid","Renato","Paulo","Mariana","Mario","Luiza","Luiz")</font></div><div><font face="monospace, monospace">banco<-data.frame(a,b)</font></div><div><font face="monospace, monospace">banco</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">a1 <- strtrim(banco$a,1)</font></div><div><font face="monospace, monospace">a2 <- as.numeric(substr(banco$a,2,4))</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">banco$cor <- NA</font></div><div><font face="monospace, monospace">banco$cor[a1=="B"] <- "vermelho"</font></div><div><font face="monospace, monospace">banco$cor[a1=="B" & a2>550] <- "branco"</font></div><div><font face="monospace, monospace">banco$cor[a1=="C"] <- "verde"</font></div><div><font face="monospace, monospace">banco$cor[a1=="C" & a2>300] <- "amarelo"</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">banco</font></div><div><font face="monospace, monospace">### </code></font></div><div><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Éder Comunello <<a href="mailto:comunello.eder@gmail.com" target="_blank">c</a><a href="mailto:omunello.eder@gmail.com" target="_blank">omunello.eder@gmail.com</a>> <br>Dourados, MS - [22 16.5'S, 54 49'W]<br></div></div></div>
<br></div></div>