<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:8pt"><div style="" class=""><span style="" class="">?write.csv</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 10.6667px; font-family: verdana,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""><span style="" class=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 10.6667px; font-family: verdana,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""></div><pre style="" class="">## Not run:
## To write a CSV file for input to Excel one might use
x <- data.frame(a = I("a \" quote"), b = pi)
write.table(x, file = "foo.csv", sep = ",", col.names = NA,
qmethod = "double")
## and to read this file back into R one needs
read.table("foo.csv", header = TRUE, sep = ",", row.names = 1)
## NB: you do need to specify a separator if qmethod = "double".
### Alternatively
write.csv(x, file = "foo.csv")
read.csv("foo.csv", row.names = 1)
## or without row names
write.csv(x, file = "foo.csv", row.names = FALSE)
read.csv("foo.csv")
## To write a file in MacRoman for simple use in Mac Excel 2004/8
write.csv(x, file = "foo.csv", fileEncoding = "macroman")
## or for Windows Excel 2007/10
write.csv(x, file = "foo.csv", fileEncoding = "UTF-16LE")</pre><div style="" class=""> </div><div style="" class="">Edson Lira<br style="" class="">Estatístico<br style="" class="">Manaus-Amazonas</div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div class="" style="font-family: verdana, helvetica, sans-serif; font-size: 8pt;"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="" class="" dir="ltr"> <font style="" class="" face="Arial" size="2"> Em Quarta-feira, 27 de Agosto de 2014 9:08, Alisson Lucrécio <alisson.lucrecio@ifgoiano.edu.br> escreveu:<br style="" class=""> </font> </div> <br style="" class=""><br style="" class=""> <div style="" class=""><div style="" class="" id="yiv4962744548"><div style="" class="" dir="ltr"><div style="" class=""><div style="" class=""><font style="" class=""
color="#141823" face="Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif"><span class="" style="font-size:14px;line-height:19.31999969482422px;">Caros Colegas,</span></font></div><div style="" class="">
<font style="" class="" color="#141823" face="Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif"><span class="" style="font-size:14px;line-height:19.31999969482422px;"><br style="" class=""></span></font></div><div style="" class=""><font style="" class="" color="#141823" face="Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif"><span class="" style="font-size:14px;line-height:19.31999969482422px;">Bom dia.</span></font></div>
<div style="" class=""><font style="" class="" color="#141823" face="Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif"><span class="" style="font-size:14px;line-height:19.31999969482422px;"><br style="" class=""></span></font></div><div style="" class=""><font style="" class="" color="#141823" face="Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif"><span class="" style="font-size:14px;line-height:19.31999969482422px;">Tenho um arquivo .spt (.SPT) e que quero transformar para .csv (.CSV), algum colega saberia como fazer isso no R?</span></font></div>
<div style="" class=""><font style="" class="" color="#141823" face="Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif"><span class="" style="font-size:14px;line-height:19.31999969482422px;"><br style="" class=""></span></font></div><div style="" class=""><font style="" class="" color="#141823" face="Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif"><span class="" style="font-size:14px;line-height:19.31999969482422px;">Obrigado.</span></font></div>
<div style="" class=""><font style="" class="" color="#141823" face="Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif"><span class="" style="font-size:14px;line-height:19.31999969482422px;"><br style="" class=""></span></font></div><div style="" class=""><font style="" class="" color="#141823" face="Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif"><span class="" style="font-size:14px;line-height:19.31999969482422px;">-- </span></font></div>
<div style="" class=""><font style="" class="" color="#141823" face="Helvetica, Arial, lucida grande, tahoma, verdana, arial, sans-serif"><span class="" style="font-size:14px;line-height:19.31999969482422px;">Alisson Lucrecio da Costa</span></font></div></div><div style="" class="">
</div></div></div><br style="" class="">_______________________________________________<br style="" class="">R-br mailing list<br style="" class=""><a style="" class="" ymailto="mailto:R-br@listas.c3sl.ufpr.br" href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br style="" class=""><a style="" class="" 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 style="" class="">Leia o guia de postagem (<a style="" class="" 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 style="" class=""><br style="" class=""></div> </div> </div> </div> </div></body></html>