You are currently browsing Garrett.Grolemund’s articles.

We’ve redesigned our training pages to make it even easier for you to learn R or Shiny. Visit our new training web page,, to see:

  • A curated list of free materials for learning R. We think that these are some of the most helpful resources on the web. They would make an effective starting place if you want to improve your R skills.
  • Announcements for upcoming RStudio public workshops, like the Introduction to R course that we’re holding on April 28 & 29 in San Francisco.
  • A database of well known R instructors, who can provide on-site — as well as online — R training.
  • Links to the new Shiny Dev Center, which includes articles, examples, and a tutorial, all designed to help you master Shiny.
  • Links to the preview sites for R Markdown, an easy option for writing reproducible reports with R, and ggvis, an R package that creates interactive plots with the grammar of graphics.
  • Links to books that we have written (or are writing) about R and its tools.

Why are we so excited about training? We think that learning R and Shiny is the best investment that a data user can make. These two free tools can streamline how you analyze data and deliver results. Browse through the links at and see for yourself.



The latest version of lubridate offers some powerful new features and huge speed improvements. Some areas, such as date parsing are more than 50 times faster. lubridate 1.2.0 also fixes those pesky NA bugs in 1.1.0. Here’s some of what you’ll find:

Parsers can now handle a wider variety date formats, even within the same vector

dates <- c("January 31, 2010", "2-28-2010", "03/31/2000")
dates <- mdy(dates)
## [1] "2010-01-31 UTC" "2010-02-28 UTC" "2000-03-31 UTC

Stamp lets you display dates however you like, by emulating an example date

stamper <- stamp("1 March 1999")
[1] "31 January 2010"  "28 February 2010" "31 March 2000"

New methods add months without rolling past the end of short months. Its hard to find a satisfactory way to implement addition with months, but the %m+% and %m-% operators provide a new option that wasn’t available before.

ymd("2010-01-31") %m+% months(1:3)
[1] "2010-02-28 UTC" "2010-03-31 UTC" "2010-04-30 UTC"

lubridate 1.2.0 includes many awesome ideas and patches submitted by lubridate users, so check out what is new. For a complete list of new features and contributors, see the package NEWS file on github.

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 519 other followers

RStudio is an affiliated project of the Foundation for Open Access Statistics


Get every new post delivered to your Inbox.

Join 519 other followers