Full_Name: andrea capodicasa Version: 1.7.0 OS: w2k sp3 Submission from: (NULL) (212.17.194.154) Hi all, the problem is when you try to round.Posix an empty vector of dates Please give a look to this code:
data=seq(ISOdate(2001,1,1),by="day",length=3) data
[1] "2001-01-01 13:00:00 ora solare Europa occidentale" [2] "2001-01-02 13:00:00 ora solare Europa occidentale" [3] "2001-01-03 13:00:00 ora solare Europa occidentale" this works:
non.crasha=round(data[c(F,F,T)],"day") non.crasha
[1] "2001-01-04" this (subsetting data with an empty set) crashes R on w2k crasha=round(data[c(F,F,F)],"day") these are infos about my R
R.version
_ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 1 minor 7.0 year 2003 month 04 day 16 language R --- TIA Andrea Capodicasa