Skip to content

round.POSIXt sometimes crashes R (PR#3763)

1 message · andrea.capodicasa@albacom.it

#
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:
[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:
[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
_              
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