Publications by Kay Cichini

Download all Documents from Google Drive with R

17.03.2014

A commentator on my blog recently asked if it is possible to retrieve all direct links to your Google Documents. And indeed it can be very easily done with R, just like so: # you'll need RGoogleDocs (with RCurl dependency..) install.packages("RGoogleDocs", repos = "http://www.omegahat.org/R", type="source") library(RGoogleDocs) gpasswd = "...

579 sym R (1156 sym/1 pcs) 2 img

R GIS: Generalizer for KML Paths

03.05.2014

I’m posting a recent project’s spin-off, which is a custom line-generalizer which I used for huge KML-paths. Anyone with a less clumpsy approach?## line generalizing function: takes two vectors of with x/ycoords ## and return ids of x/y elements which distance to its next element ## is shorter than the average distance between co...

553 sym R (3204 sym/1 pcs)

R GIS: Function to Reverse KML Paths

03.05.2014

This is a function I wrote up for reversing KML-paths. The paths within a KML can partially matched by their name-tags## name: ReverseKmlPath ## use: Reverser a KML-path by matching its ## arguments: PATH_TO_DOC the path to the KML-file ## NAME the value of the name tag, function uses partial ...

526 sym R (2961 sym/1 pcs)

Make a KML-File from an OpenStreetMap Trail

26.09.2014

Ever wished to use a trail on OSM on your GPS or smartphone? With this neat little R-Script this can easily be done. You’ll just need to search OpenStreetMap for the ID of the trail (way), put this as argument to osmar::get_osm, convert to KML and you’re good to go!# get OSM data library(osmar) library(maptools) rotewandsteig <- ...

674 sym R (350 sym/1 pcs) 4 img