<div dir="ltr"><div class="gmail_default" style="font-family:times new roman,serif;font-size:large">Bom dia amigos<br></div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large">Tenho um arquivo .csv com uma variável chamada patrimônio que possui valores acima de 100.000 reais, assim:</div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large"></div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large">



        
        
        <span></span>
        
        
        



<table style="font-family:"Liberation Sans";font-size:x-small" cellspacing="0" border="0">
        <colgroup width="75"></colgroup>
        <tbody style="font-family:"Liberation Sans";font-size:x-small"><tr style="font-family:"Liberation Sans";font-size:x-small">
                <td style="font-family:"Liberation Sans";font-size:x-small" height="17" align="left">Patrimonio</td>
        </tr>
        <tr style="font-family:"Liberation Sans";font-size:x-small">
                <td style="font-family:"Liberation Sans";font-size:x-small" height="17" align="right">100.000,00</td>
        </tr>
        <tr style="font-family:"Liberation Sans";font-size:x-small">
                <td style="font-family:"Liberation Sans";font-size:x-small" height="17" align="right">110.000,00</td>
        </tr>
        <tr style="font-family:"Liberation Sans";font-size:x-small">
                <td style="font-family:"Liberation Sans";font-size:x-small" height="17" align="right">120.000,00</td>
        </tr>
        <tr style="font-family:"Liberation Sans";font-size:x-small">
                <td style="font-family:"Liberation Sans";font-size:x-small" height="17" align="right">120.000,00</td>
        </tr>
        <tr style="font-family:"Liberation Sans";font-size:x-small">
                <td style="font-family:"Liberation Sans";font-size:x-small" height="17" align="right">120.000,00</td>
        </tr>
</tbody></table>



</div><div><br></div><div><div style="font-family:times new roman,serif;font-size:large" class="gmail_default">Leio no RStudio com o comando: read.csv("dados.csv", sep = ',', dec = ",", header = TRUE), porém a variável vem sem casas decimais<br></div><div style="font-family:times new roman,serif;font-size:large" class="gmail_default"><br></div><div style="font-family:times new roman,serif;font-size:large" class="gmail_default"><img src="cid:ii_llqlm5lt0" alt="Captura de tela de 2023-08-25 09-58-01.png" width="434" height="20"><br></div><div style="font-family:times new roman,serif;font-size:large" class="gmail_default">Tentei converter com: <br><pre aria-label="Console Output" role="document" id="m_3386995487499888885gmail-rstudio_console_output" style="font-family:"Ubuntu Mono",monospace;font-size:13.3333px;outline:currentcolor none medium;border:medium none;word-break:break-all;margin:0px;white-space:pre-wrap;line-height:1.25;color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span role="document" style="outline:currentcolor none medium"><span style="color:blue"><a href="http://data.to.work" target="_blank">data.to.work</a>$Patrimonio <- as.double(<a href="http://data.to.work" target="_blank">data.to.work</a>$Patrimonio)</span></span></pre></div></div><div><br></div><div><div style="font-family:times new roman,serif;font-size:large" class="gmail_default">Porém só mudou para num e sem casas decimais.</div><div style="font-family:times new roman,serif;font-size:large" class="gmail_default"><br></div><div style="font-family:times new roman,serif;font-size:large" class="gmail_default">Onde estou errando?<br></div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font size="4" face="times new roman, serif"><i><span>In Jesu et Maria</span><br><br></i></font><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font size="4" face="times new roman, serif"><i>Obrigado / Thank you<br></i></font></div><div><font size="4" face="times new roman, serif"><i>Prof. Dr. Elias Carvalho</i></font></div><div><font size="4" face="times new roman, serif"><i><br></i></font></div><div><font size="4" face="times new roman, serif"><i><div>"Felix, qui potuit rerum cognoscere causas" (Virgil 29 BC)</div><div>"Blessed is he who has been able to understand the cause of things"</div></i></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>