This tutorial gives you an introduction about working with the *lubridate* package in R.

This post is partly based on the following paper (PDF) published by the authors of the lubridate package:

Skip to content
Skip to main menu
#
Quant Lego

## Financial quant skills

#
Dates and times

# Working with Lubridate Package in R

# Introduction to Dates and Times in R

### 1 Overview

This tutorial gives you an introduction about working with the *lubridate* package in R.

This post is partly based on the following paper (PDF) published by the authors of the lubridate package:

This tutorial gives a brief introduction to dates and times in R.

There are several ways of handling with date and time data in R:

- The
**date**class in base R — handles dates without time - The
**chron**package — handles dates and times without control for time zones. - The
**POSIXt**classes in base R — handle dates and times with control for time zone. - The
**lubridate**package - The
**timeDate**package - The zoo package
- The xts package

General rule for choosing ways for handling dates/times:

- I would choose date and POSIXt classes if they meet my requirements, since they are included in R base. Why bother with external (package) dependencies unless very necessary?