On Tue, Jan 26, 2010 at 11:42 AM, Steve Murray <smurray...@hotmail.com>wrote:
> > Dear all, > > Thanks for the replies so far. > > Just to emphasise, I'm not using Excel in any way. I have many many files > to output, so it'd take considerable time to export from R, reprocess in > Excel, then load into Arc! On a PC I'm able to go directly from R to ArcMap > (9.3) without having to go via Excel. I've simply been viewing the data in > Notepad, which was fine for observing the removal of the end-of-line > characters and general format of the data (3 columns). > > My data are structured as follows: > > > str(mrunoff) > 'data.frame': 61538 obs. of 3 variables: > $ Latitude : chr "5.75" "6.25" "6.75" "7.25" ... > $ Longitude: Factor w/ 720 levels "0.25","0.75",..: 1 1 1 1 1 1 1 1 1 1 > ... > $ Runoff : num 0.687 2.661 0 0 0 ... > what about changing the class from Longitude and Latitude to numeric? This could probably solve the problem? > > I can't use col.names=NA, as I do have column names! These are also > required by Arc as identifiers. Also, as you can see, there are no > complications in the variable names which, as you rightly say, can cause > problems in Arc. > > If anyone has any further suggestions regarding how to overcome this > problem of generating data from R on a Mac for input to ArcGIS on a PC, then > I'd be very grateful to hear them. > In addition, as far as I know, Arc can read dbf and from R, you can export to dbf, via the package "foreign" - might be worth a try. Cheers, Rainer > Many thanks again, > > Steve > > > > _________________________________________________________________ > Got a cool Hotmail story? Tell us now > > ______________________________________________ > R-help@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. > -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax: +27 - (0)86 516 2782 Fax: +49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com [[alternative HTML version deleted]] ______________________________________________ R-help@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.