[R] write table in ascii

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Fri May 31 02:58:49 CEST 2013


I would bet the problem is end-of-line convention. This is a very old problem of text file conversion that has many solutions, none of which should be addressed by R. Rather, you should use any of the many standard file transfer mechanisms that understand EOL issues in text files, rather than transferring the data as if it were binary data. Email is one such mechanism, FTP is another. Many text editors can also fix this for you. It is possible to fix it in R, but that is a very bad approach. Google is your friend.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

Gary Dong <pdxgary163 at gmail.com> wrote:

>I am working in Windows system. But a software I am using requires data
>input in ascii (.dat, delimiters can be tabs or spaces). I was able to
>save
>the data into .dat (ascii) from SPSS, but it keeps causing problems.
>Thank
>you!
>
>Gary
>
>
>On Thu, May 30, 2013 at 3:51 PM, Sarah Goslee
><sarah.goslee at gmail.com>wrote:
>
>> On Thu, May 30, 2013 at 6:35 PM, Gary Dong <pdxgary163 at gmail.com>
>wrote:
>> > Dear R users,
>> >
>> > I have a data set in .csv and I hope to convert it to .dat (ascii)
>so it
>> > can work in an UNIX environment. Anyone can help me? Thank you!
>>
>> Please expand. Why can't you work with csv in a UNIX environment?
>>
>> I do it all the time.
>>
>> Sarah
>>
>> --
>> Sarah Goslee
>> http://www.functionaldiversity.org
>>
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list