Re: [R] Date object

2012-04-21 Thread David Winsemius
On Apr 21, 2012, at 3:49 PM, Rui Barradas wrote: Hello, Veerappa Chetty wrote HI, I have to work with data objects. I have trouble. I would like to convert date to a integer of Julian dates omitting hours, minutes etc. I tried as. Date and also as.POSIXlt, ct etc. Please help me to co

Re: [R] Date object

2012-04-21 Thread Rui Barradas
Hello, Veerappa Chetty wrote > > HI, > I have to work with data objects. I have trouble. I would like to convert > date to a integer of Julian dates omitting hours, minutes etc. I tried as. > Date and also as.POSIXlt, ct etc. > > Please help me to compute the following difference. I get an "NA"

Re: [R] Date object

2012-04-21 Thread David Winsemius
On Apr 21, 2012, at 1:17 PM, Veerappa Chetty wrote: HI, I have to work with data objects. I have trouble. I would like to convert date to a integer of Julian dates omitting hours, minutes etc. I tried as. Date and also as.POSIXlt, ct etc. Please help me to compute the following difference

[R] Date object

2012-04-21 Thread Veerappa Chetty
HI, I have to work with data objects. I have trouble. I would like to convert date to a integer of Julian dates omitting hours, minutes etc. I tried as. Date and also as.POSIXlt, ct etc. Please help me to compute the following difference. I get an "NA" for output. 1/14/2006 0:00:00 AM -1/9/2006 0

[R] Date object and origin BC

2011-12-08 Thread smu
hi everybody, is this intended behaviour? > x <- as.Date('0-01-01') > as.Date(as.character(x)) [1] "0-01-01" > a <- x - 365 > as.Date(a) [1] "-1-01-01" > as.Date(as.character(a)) Error in charToDate(x) : character string is not in a standard unambiguous format Is this a bug? I found this, whil