Re: [R] Strptime/ date time classes

2008-07-14 Thread Caroline Keef
is.na(strptime("19810329012000",format="%Y%m%d%H%M%S")) [1] TRUE The problem was to do with daylight saving time. I need to specify a time zone as this time doesn't exist in my operating system's current time zone. I still think this is odd behaviour though! When you look at the missing obje

Re: [R] Strptime/ date time classes

2008-07-09 Thread Caroline Keef
:18:00" [16] > "2000-03-26 01:28:00" Which obviously aren't missing. I do want POSIXlt as I need to extract the day of the month (I'm extracting daily maxima from irregulrly observed time series). This seems like a bug to me, I just thought I'd check with people

[R] Strptime/ date time classes

2008-07-09 Thread Caroline Keef
Dear all, I've come across a problem using strptime, can anyone explain what's going on? I'm using version 2.7.0 on Windows XP. Thank you Caroline First read in a data file using read.table alldata = read.table(file, header=F, skip=4, colClasses = c("character","numeric")) dim(alldata) [1] 2