How to integrate R with your calendar

August 20, 2014
By

(This article was first published on Revolutions, and kindly contributed to R-bloggers)

Hilary Parker has contributed a lovely article to Significance, the magazine of the American Statistical Association and the Royal Statistical Society, on using R to set your Google calendar to mark the time of sunsets. Hilary details the process in the article, but the basic idea is to use the sunrise.set function from the StreamMetabolism package to calculate sunset times at future date, and then create an R function to write a file of calendar appointments which you can import into Google Calendar. (You can use a similar process to set up calendar events for anything you like — just adapt the R code accordingly.) Now that her phone buzzes to alert her to the upcoming sunset, Hilary has been able to capture some beautiful sunsets framed by the NYC skyline, like this one:

Hilary-sunset
Photo credit: Hilary Parker

Hilary is a data analyst at Etsy, and writes interesting articles about R and statistics at her blog, Not So Standard Deviations. If — like Hilary — you use R at work, you should also check out her post, Writing an R package from scratch, which includes some great tips on organizing your R functions using personal packages. Hilary also has some great advice on testing R scripts for production use in her useR! 2014 poster, testdat: An R Package for Unit Testing of Tabular data

Significance: Never miss another sunset with R

To leave a comment for the author, please follow the link and comment on his blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.