<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'>$Bonito <- as.numeric($Bonito)<br>Acho que isso resolve.<br><br><div><span name="x"></span>Lucas F. de Souza<br>Eng. Agrícola - CONAB<br>M.Sc. Produção Vegetal - UENF<br>Doutor em Agrometeorologia - ESALQ/USP<br>tel: (19) 98160-7068<span name="x"></span><br></div><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>De: </b>"Aline Lipsky" <line_lips@hotmail.com><br><b>Para: </b>"programa r" <r-br@listas.c3sl.ufpr.br><br><b>Enviadas: </b>Segunda-feira, 16 de Junho de 2014 10:03:27<br><b>Assunto: </b>[R-br] Alterar o tipo das variáveis de um data.frame<br><br>

<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">Bom dia prezados colegas,</span><div style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><br></div><div style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);">Eu tenho um data.frame com a seguinte estrutura:</div><div style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><br></div><div style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><div> $ Bonito            : int  0 0 0 0 0 0 0 0 0 0 ...</div><div> $ Burriquete        : chr  "0" "0" "0" "0" ...</div><div> $ Cabrinha          : int  0 0 0 0 0 0 0 0 0 0 ...</div><div> $ Cação             : int  0 0 0 0 0 0 0 0 0 0 ...</div><div> $ Cação.anjo        : int  0 0 0 0 0 0 0 0 0 0 ...</div><div> $ Camarão           : Factor w/ 437 levels "0","1","10","100",..: 196 1 320 256 16 126 41 204 310 115 ...</div><div> $ Camarão.barba.ruça: int  0 0 0 0 0 0 0 0 0 0 ...</div><div> $ Camarão.rosa      : int  0 0 0 0 0 0 0 0 0 0 ...</div><div> $ Camarão.santana   : int  0 0 0 0 0 0 0 0 0 0 ...</div></div><div style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><br></div><div style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);">Preciso que todas as variáveis sejam do tipo numérico. Como posso fazer essa alteração?</div><div style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><br></div><div style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);">Grata pela atenção,</div><div style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><br></div><div style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);">Aline</div>                                           </div>
<br>_______________________________________________<br>R-br mailing list<br>R-br@listas.c3sl.ufpr.br<br>https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br<br>Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça código mínimo reproduzível.</blockquote><br></div></body></html>