[R] Exporting column names with spaces with write.csv() XXXX

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Sun Sep 6 04:32:44 CEST 2015


Reproducible example, please.
---------------------------------------------------------------------------
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.

On September 5, 2015 7:09:28 PM PDT, Dan Abner <dan.abner99 at gmail.com> wrote:
>Hi all,
>
>I have a number of columns with spaces in the column names exactly as
>I want them in R. When I go to export the data table to csv using
>write.csv(), the fn adds periods in place of the spaces.
>
>Is there a way to suppress the addition of the periods?
>
>Thanks,
>
>Dan
>
>______________________________________________
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>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