Skip to content

date objects

2 messages · Erin Hodgess, Ista Zahn

#
Hi Erin,

"Best" is subjective, but I like

library(lubridate)
library(plyr)
xb.df <- mutate(xb.df,
                time = ymd(time, truncated = 1),
                year = year(time),
                quarter = quarter(time))

Best,
Ista
On Mon, Feb 17, 2014 at 7:35 PM, Erin Hodgess <erinm.hodgess at gmail.com> wrote: