Articles by Kay Cichini

Tweaking Movie Subtitles with R

April 10, 2013 | Kay Cichini

I use R to fix subtitles that are not in sync with my movies. For the example below the subs were showing too early - so I added some time to each sequence in the srt file. For simplicity I used exactly 1 second in the below example.You'll see that ... [Read more...]

Download Files from Dropbox Programmatically with R

April 10, 2013 | Kay Cichini

Here is a usefull snippet that I stole from qdap::url_dl to download files from my Dropbox to the working directory.Argument x is the document name and d the document key. dl_from_dropbox require(RCurl) bin ssl.verifypeer = FALSE) con writeBin(bin, con) close(con) message(noquote(... [Read more...]

Convert OpenStreetMap Objects to KML with R

December 22, 2012 | Kay Cichini

A quick geo-tip:With the osmar and maptools package you can easily pull an OpenStreetMap object and convert it to KML, like below (thanks to adibender helping out on SO). I found the relation ID by googling for it (www.google.at/search?q=openstreetmap+relation+innsbruck).# get OSM datalibrary(... [Read more...]

Taxonomy with R: Exploring the Taxize-Package

December 16, 2012 | Kay Cichini

First off, I'd really like to give a shout-out to the brave people who have created and maintain this great package - the fame is yours!So, while exploring the capabilities of the package some issues with the ITIS-Server arose and with large datasets things weren't working out quite well ... [Read more...]

Merging Dataframes by Partly Matching String

September 29, 2012 | Kay Cichini

The latest posting by Tony Hirst sparked my attention because I was thinking about a very similar issue recently.I was also fiddling around with agrep and adist until I realised that for this very issue matching of substrings is not as important as matching multiple words.. With this different ... [Read more...]

Toy Example with GScholarScraper_3.1

August 24, 2012 | Kay Cichini

A commentator on my blog brought up this nice idea of how to use the GScholarScraper function for bibliometrics..I altered the code a little bit which enables to set a year since when results should be returned and added a field to the output collectin... [Read more...]

Web-Scraper for Google Scholar Updated!

August 22, 2012 | Kay Cichini

I have updated the Google Scholar Web-Scraper Function GScholarScaper_2 to GScholarScraper_3 (and GScholarScaper_3.1) as it was outdated due to changes in the Google Scholar html-code. The new script is more slender and faster. It returns a dataframe o... [Read more...]

Use IUCN API with R & XPath

June 28, 2012 | Kay Cichini

Thanks to a posting on R-sig-eco mailing list I learned of the IUCN-API. Here's a simple example for what can be done with it (output as pdf is HERE):require(XML)require(maptools)require(jpeg)input = "panthera-uncia"h [Read more...]

FloraWeb Plant Species Report via R

June 10, 2012 | Kay Cichini

For German-spoken users I added the function floraweb_scrape.R that allows you to conveniently collect species data and print to a PDF-file (see this example output). The function accesses data provided by the  web-site FloraWeb.de (BfN - Bundesministerium für Naturschutz).You can use it as an interactive ... [Read more...]

Source R-Script from Dropbox

May 14, 2012 | Kay Cichini

A quick tip on how to source R-scripts from a Dropbox-account:(1) Upload the script.. (2) Get link with the "get link" option. The link should look like "https://www.dropbox.com/s/XXXXXX/yourscript.R"..(3) Grab this part "XXXXXX/yourscript.R" and paste... [Read more...]
1 2 3 4 6

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)