Re: [R] Mystery Error in midnightStandard

2009-01-28 Thread Yohan Chalabi
"TB" == Ted Byers on Wed, 28 Jan 2009 11:25:55 -0500 TB> That the two behave the same doesn't change the assessment TB> that the design TB> is flawed. That doesn't mean that the function is wrong. TB> It means only TB> that the behaviour can be made more useful. For exa

Re: [R] Mystery Error in midnightStandard

2009-01-28 Thread Ted Byers
Hi Yohan, On Wed, Jan 28, 2009 at 10:28 AM, Yohan Chalabi wrote: > "TB" == Ted Byers > on Wed, 28 Jan 2009 09:30:58 -0500 > > TB> It is certain that all entries have the same format, but I'm > TB> starting to > TB> think that the error message is something of a red herring. > T

Re: [R] Mystery Error in midnightStandard

2009-01-28 Thread Yohan Chalabi
"TB" == Ted Byers on Wed, 28 Jan 2009 09:30:58 -0500 TB> It is certain that all entries have the same format, but I'm TB> starting to TB> think that the error message is something of a red herring. TB> Consider this: TB> TB> > year = 2009 TB> > week = 0 TB> > day

Re: [R] Mystery Error in midnightStandard

2009-01-28 Thread Ted Byers
Hi Yohan, Thanks. On Wed, Jan 28, 2009 at 4:57 AM, Yohan Chalabi wrote: > "TB" == Ted Byers > on Tue, 27 Jan 2009 16:00:27 -0500 > > TB> I wasn't even aware I was using midnightStandard. You won't > TB> find it in my > TB> script. > TB> > TB> Here is the relevant loop: >

Re: [R] Mystery Error in midnightStandard

2009-01-28 Thread Yohan Chalabi
"TB" == Ted Byers on Tue, 27 Jan 2009 16:00:27 -0500 TB> I wasn't even aware I was using midnightStandard. You won't TB> find it in my TB> script. TB> TB> Here is the relevant loop: TB> TB> date1 = timeDate(charvec = Sys.Date(), format = %Y-%m-%d) TB> date1 T

[R] Mystery Error in midnightStandard

2009-01-27 Thread Ted Byers
I wasn't even aware I was using midnightStandard. You won't find it in my script. Here is the relevant loop: date1 = timeDate(charvec = Sys.Date(), format = "%Y-%m-%d") date1 dow = 3; for (i in 1:length(V4) ) { x = read.csv(as.character(V4[[i]]), header = FALSE, na.strings=""); y = x[,1];