Re: [R] ISOdate() and strptime()

2003-11-22 Thread Prof Brian Ripley
Confirmation that this *is* an OS-specific problem: A professional implementation of the POSIX standard (Solaris) gets all of these correct. Your so-called OS lacks any implementation of strptime, so we borrowed one from glibc. Unfortunately, that is buggy, even to the extent that

RE: [R] ISOdate() and strptime()

2003-11-17 Thread Simon Fear
: [R] ISOdate() and strptime() Security Warning: If you are not sure an attachment is safe to open please contact Andy on x234. There are 0 attachments with this message. Thomas Lumley wrote: On Fri, 14 Nov 2003

Re: [R] ISOdate() and strptime()

2003-11-17 Thread RINNER Heinrich
I have followed with interest the discussion on date handling. I am no expert in these things; all I want to do is convert a character vector that has been read into R (and which may contain some erroneous dates) to a date format, and then do some work with it [e.g., use it in a plot]. Classes

Re: [R] ISOdate() and strptime()

2003-11-14 Thread Prof Brian Ripley
On Fri, 14 Nov 2003, RINNER Heinrich wrote: Dear R-people! I am using R 1.8.0, under Windows XP. While using ISOdate() and strptime(), I noticed the following behaviour when wrong arguments (e.g., months12) are given to these functions: ISOdate(year=2003,month=2,day=20) #ok [1]

RE: [R] ISOdate() and strptime()

2003-11-14 Thread Simon Fear
People who don't like this behaviour (and particularly those who dislike it as much as I do), should consider as.date() from the dates package as an alternative. Gives you a NA if the specified date is impossible (at least in all the examples given earlier). Is the behaviour of ISOtime() and