<div>Eu tentaria</div>
<div><br><span style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">mydata$name2 <-strsplit(as.character(</span><span style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">mydata[,1]),split=" d[ea] ")</span><br style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">
<div><br> </div></div>
<div class="gmail_quote">Em 9 de janeiro de 2013 09:28, Fátima Lima Paula <span dir="ltr"><<a href="mailto:fatima.lima.paula@gmail.com" target="_blank">fatima.lima.paula@gmail.com</a>></span> escreveu:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><font color="#993399"><font size="4"><font face="comic sans ms,sans-serif">Olá, pessoal.</font></font></font>
<div><font color="#993399"><font size="4"><font face="comic sans ms,sans-serif">O Daniel Marcelino me passou esse script com a solução para extrair os "da" "de" dos nomes.</font></font></font></div>
<div><font color="#993399"><font size="4"><font face="comic sans ms,sans-serif">Mas como sou um horror em R não consigo eliminar tudo ao mesmo tempo.</font></font></font></div>
<div><font color="#993399"><font size="4"><font face="comic sans ms,sans-serif">Se rodo o script dele, funciona para o "de". Mas quando repito para "da" retorna um problema.</font></font></font></div>
<div><font color="#993399"><font size="4"><font face="comic sans ms,sans-serif">Como não manjo nada, tentei usar list(c("de","da")). Não funcionou. Tentei usar ("de" | "da"). Nada.</font></font></font></div>
<div><font color="#993399"><font size="4"><font face="comic sans ms,sans-serif">Alguém pode me ajudar, por favor.</font></font></font></div>
<div><font color="#993399"><font size="4"><font face="comic sans ms,sans-serif">Obrigada</font></font></font></div>
<div><font color="#993399"><font size="4"><font face="comic sans ms,sans-serif">Fátima</font></font></font></div>
<div><font color="#993399"><font size="4"><font face="comic sans ms,sans-serif"><br></font></font></font></div>
<div><span style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">mydata <- data.frame(</span><br style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px"><span style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">name = a<-c("Ricardo de Almeida","Maria José da Cruz","Maria Tereza</span><br style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">
<span style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">dos Santos","Paulo da Rocha","José Maria", "Germano das Neves"),</span><br style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">
<span style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">age = b<-c(67,89,78,65,68,67),</span><br style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px"><span style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">birth = c <-c(1945,1923,1934,1947,1944,</span><span style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">1945),</span><br style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">
<span style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">date = d<-c(20120907,20120703,</span><span style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">20120301,20120805,20121004,</span><span style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">20121209) )</span><br style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">
<br style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px"><span style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">mydata$name2 <-strsplit(as.character(</span><span style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">mydata[,1]),split=c(" de "))</span><br style="FONT-FAMILY:arial,sans-serif;COLOR:rgb(34,34,34);FONT-SIZE:13px">
</div>
<div><font color="#993399"><font size="4"><font face="comic sans ms,sans-serif"><br></font></font></font></div>
<div><font color="#993399"><font size="4"><font face="comic sans ms,sans-serif"><br></font></font></font></div>
<div><font color="#993399"><font size="4"><font face="comic sans ms,sans-serif"><br></font></font></font></div>
<div><font color="#993399"><font size="4"><font face="comic sans ms,sans-serif"> </font></font></font></div><br>_______________________________________________<br>R-br mailing list<br><a href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br>
<a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br>
</blockquote></div><br><br clear="all"><br>-- <br>Marcos F. Silva<br><a href="http://sites.google.com/site/marcosfs2006" target="_blank">http://sites.google.com/site/marcosfs2006</a>