[R] [R-pkgs] lubridate v2.2 available on cran

Garrett Grolemund grolemund at gmail.com
Wed Nov 17 16:31:08 CET 2010

Version 2.2 of the lubridate package is now available. lubridate makes it
easier to work with date-time data. For example, it provides:

* simple functions to extract and modify components of a date-time,
such as years, months, days, hours, minutes, and seconds: year(),
month(), day(), ...

* quick and easy functions to parse date-times: ymd(), dmy(), mdy(), ...

* helper functions for handling time zones: with_tz(), force_tz()

* three new time span objects -- durations, periods, and intervals -- based
on the time span classes of http://joda.org and the boost C++ library.

The new version includes:

* division, modulo, and integer methods for time spans.

* cleaner display formats for time span objects

* a namespace for the package

For an example of how you might use lubridate, calculate the number of days
until christmas with:

(ymd("2010-12-25") - today()) / ddays(1)

Garrett Grolemund
Rice University

	[[alternative HTML version deleted]]

R-packages mailing list
R-packages at r-project.org

More information about the R-help mailing list