Re: [R] possible problem with "endpoints"?

2011-03-17 Thread Joshua Ulrich
Hi Erin, On Thu, Mar 17, 2011 at 1:27 AM, Erin Hodgess wrote: > Dear R People: > > Hello again! > > I found something unusual in the behavior of the "endpoints" function > from the xts package: > >> x1 <- ts(1:24,start=2008,freq=12) >> dat <- seq(as.Date("2008/01/01"),length=24,by="months") >> li

[R] possible problem with "endpoints"?

2011-03-16 Thread Erin Hodgess
Dear R People: Hello again! I found something unusual in the behavior of the "endpoints" function from the xts package: > x1 <- ts(1:24,start=2008,freq=12) > dat <- seq(as.Date("2008/01/01"),length=24,by="months") > library(zoo);library(xts) > x2 <- zoo(1:24,order=dat) > #Here is the surprise: >