<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EstiloDeEmail17
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=PT-BR link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Vanessa,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Se o problema for o SELECT, olhe o package </span><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>sqldf</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Se o problema for o CASE ...WHEN, olhe o comando </span><b>switch</b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><img width=351 height=85 id="Imagem_x0020_1" src="cid:image001.png@01CFF558.CFA4B980"><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>De:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> R-br [mailto:r-br-bounces@listas.c3sl.ufpr.br] <b>Em nome de </b>Vanessa Felix<br><b>Enviada em:</b> quinta-feira, 30 de outubro de 2014 15:47<br><b>Para:</b> Lista R<br><b>Assunto:</b> [R-br] Dúvida<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Alguém poderia me ajudar a passar esse comando de SAS pra R, tem que usar mtos if's e não tô conseguindo acertar.<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal><span style='font-family:"Courier New"'>SELECT;</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> WHEN(V0602=2) DO; *(FREQUENTA A ESCOLA);</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> SELECT;</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> WHEN(V6003=1) DO; *(REGULAR DE PRIMEIRO GRAU);</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> SELECT;</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> WHEN (V6030=1) DO;*(DURAÇÃO DO ENSINO FUNDAMENTAL = 8 ANOS);</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> SELECT;</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> WHEN(V0605=1) EDUCA3=0;</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> WHEN(V0605=2) EDUCA3=1;</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> WHEN(V0605=3) EDUCA3=2;</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> WHEN(V0605=4) EDUCA3=3;</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> WHEN(V0605=5) EDUCA3=4;</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> WHEN(V0605=6) EDUCA3=5;</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> WHEN(V0605=7) EDUCA3=6;</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> WHEN(V0605=8) EDUCA3=7;</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> OTHERWISE EDUCA3=100;</span><o:p></o:p></p></div></div><div><p class=MsoNormal> <br clear=all><o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Desde já obrigada, <o:p></o:p></p></div><p class=MsoNormal>-- <o:p></o:p></p><div><div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>------------------------------------------------------------------------------------------<o:p></o:p></p></div><p class=MsoNormal>Vanessa Felix do Nascimento Sergio<br>Graduada em Estatística - ICE/UFJF<br>Mestranda em Saúde Coletiva - IMS/UERJ<o:p></o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'>Assistente de pesquisa I - Instituto de Pesquisa Econômica Aplicada – IPEA<br>(32) 8854-4881 / 9142-8428<br>(21) 97656-3448<br>-------------------------------------------------------------------------------------------<o:p></o:p></p></div></div></div></div></div></div></body></html>