Skip to content
Prev 149475 / 398498 Next

Strptime/ date time classes

Even using POSIXlt it seems to work fine when you are looking for NAs
in the dates (ones that did not convert correctly.  So you must be
doing something different or your data is different from the example
you have in the mail.  You are always requested to provide commented,
minimal, self-contained, reproducible code.
+ #CNAMEQ|*|CTYPEn-min-ip|*|CMW1440|*|RTIMELVLhigh-resolution|*|
+ #CUNITm3/s|*|RINVAL-777|*|RNR-1|*|REXCHANGE98913|*|
+ #RTYPEinstantaneous values|*|
+ 19800604062759 -777.0
+ 19800604062800 0.271
+ 19800604111900 0.286
+ 19800604134300 0.362
+ 19800604144400 0.465
+ 19800604163300 0.510
+ 19800604175400 0.518
+ 19800604185100 0.526
+ 0611110900 -777.0
+ 19800611110959 -777.0
+ 19800611111000 0.100
+ 19800611211400 0.096
+ 19800612000000 0.096
+ 19800612065000 0.098
+ 19800612133400 0.100"),colClasses=c('character','numeric'))
POSIXlt[1:9], format: "1980-06-04 06:27:59" "1980-06-04 06:28:00"
"1980-06-04 11:19:00" ...
[1] 9
[1] NA


On Wed, Jul 9, 2008 at 1:18 PM, Caroline Keef
<caroline.keef at jbaconsulting.co.uk> wrote: