[R] problem with unlist POSIX date at midnight

2007-01-17 Thread Hanneke Schuurmans
Dear R-users, I use unlist of POSIX dates to extract the year, hour etc. With that I can search for files in my database which are in the form 'mmddhh_synops.txt' However, I get stucked during midnight where unlist just gives NA's. The script is given below, the problem accurs at

Re: [R] problem with unlist POSIX date at midnight

2007-01-17 Thread Prof Brian Ripley
On Wed, 17 Jan 2007, Hanneke Schuurmans wrote: Dear R-users, I use unlist of POSIX dates to extract the year, hour etc. With that I can search for files in my database which are in the form 'mmddhh_synops.txt' However, I get stucked during midnight where unlist just gives NA's. The

[R] problem with unlist POSIX date at midnight

2007-01-17 Thread Hanneke Schuurmans
Dear R-users, I use unlist of POSIX dates to extract the year, hour etc. With that I can search for files in my database which are in the form 'mmddhh_synops.txt' However, I get stucked during midnight where unlist just gives NA's. The script is given below; the problem accurs at

Re: [R] problem with unlist POSIX date at midnight

2007-01-17 Thread Prof Brian Ripley
[Unstated, but a near repeat of a posting earlier today with the same subject, in response to unacknowledged help.] The problem is not with unlist (as in your subject line) but your input to strptime. strptime() is intended to convert character strings, and as.character(acc.period[16]) [1]