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 wrote:
> Hell
Hello!
I generate the following two data frames:
> xa.df <- data.frame(x=rnorm(10),time=2001:2010)
> xa.df
x time
1 -1.73207086 2001
2 -0.84014049 2002
3 -0.02332163 2003
4 -1.47236670 2004
5 -0.17736265 2005
6 -1.27134314 2006
7 -2.53425374 2007
8 0.79132952 2008
9 1.165
2 matches
Mail list logo