[GRASS-user] Import R point dataframe as points in GRASS

Johannes Radinger JRadinger at gmx.at
Fri Jun 8 05:44:29 PDT 2012


Hi,

I have a R data.frame containing around 60 columns, two of them are X and Y respectively. What is the recommended way to get these "points" imported into GRASS? 

Maybe the simplest way is to save the data.frame as csv and then use v.in.ascii in GRASS. I tried to do that and specified the columns for x and y and skipped the first line (header in the csv). The import works fine and all points are correctly imported but I miss the attribute names in the attribute table (header in the csv). Maybe I have just overseen this feature to use the header from the csv as attribute names... or is this just not possible?

Or is there any other resp. better way to get points from R into GRASS? E.g. I could store them as spatial.points.data.frame in R but is there a native GRASS-format I could use for exporting/saving in R?

any suggestions are welcome!

/Johannes
-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!                                  
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a


More information about the grass-user mailing list