Skip to content

Mysterious issues with reading text files from R in ArcGIS and Excel

9 messages · Duncan Murdoch, Kerry, Jeff Newmiller +1 more

#
On 04/03/2013 10:09 AM, Kerry wrote:
I think you need to provide a simple example for us to try, either by 
putting a small example of one of your files online for us to download, 
or (better) by giving us self-contained code to duplicate the problem.

You might also get better help (especially about ArcGIS) on the 
R-sig-Geo mailing list: <https://stat.ethz.ch/mailman/listinfo/r-sig-geo>.

Duncan Murdoch
#
On 04/03/2013 10:52 AM, Kerry wrote:
That's not a CSV file, it is being written with a blank as separator.   
Since it also has blanks in the formatted POSIXct column, you're very 
likely to run into problems reading it.

Use write.csv(test, "test.csv") and you'll have fewer problems.  If you 
want tab-delimited columns instead, you'll need to specify that in the 
write.table call.

Duncan Murdoch
#
On 04/03/2013 11:15 AM, Kerry wrote:
Sorry.  In that case, I think you really do have to go to R-sig-Geo to 
find someone who knows about ArcGIS.

Duncan Murdoch
#
Your description of diagnosis uses non-R software (off topic here). Please either describe the difference in the files (you may need a hex editor or the hexbin package to detect the differences) or supply the files that behave differently (this may require some alternate route than this mailing list if there are odd characters at fault).

For what it is worth, TXT is not a clearly-defined format, so this could be more effectively addressed by using a more specific format for data exchange.
---------------------------------------------------------------------------
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.
Kerry <kernicholson at yahoo.com> wrote: