[R] Fwd: Parsing XML or KML into CSV /Using R for geocoding , OR problem

Roger Bivand Roger.Bivand at nhh.no
Tue Aug 19 12:31:04 CEST 2008


Ajay ohri <ohri2007 <at> gmail.com> writes:

> 
> Hi,
> 
> I have a data file in a KML format which is Google Earth's format for
> geographic data. I need to import it into a csv file . How can I do that.
> KML format is just like XML format .example below

The easiest way is most likely to use the rgdal KML driver, now also reading KML
files. Install the rgdal package, and use the readOGR() function. Then coerce the
imported object to a data frame, and export to csv with write.csv().

Roger

> 
> Which R module with deal with an OR problem (like transportation problem
> using geo coded data as in the example below)
> 
> Regards,
> Ajay
> 
> www.decisionstats.com
> -



More information about the R-help mailing list