[R] Date conversion problem using as.Date

2005-03-18 Thread Vegard Andersen
Hello! My problem is that the Julian date behind my dates seems to be wrong. I will examplify my problem. t1 - 1998-11-20 t2 - as.Date(t1) # Here t2 is correctly 1998-11-20, but date.mdy(t2) $month [1] 11 $day [1] 19 $year [1] 1988 And indeed, if I write: fix(t2) then I get : structure(10550,

Re: [R] Date conversion problem using as.Date

2005-03-18 Thread Gabor Grothendieck
Vegard Andersen vegard.andersen at ism.uit.no writes: : : Hello! : : My problem is that the Julian date behind my dates seems to be wrong. I : will examplify my problem. : : t1 - 1998-11-20 : t2 - as.Date(t1) : # Here t2 is correctly 1998-11-20, but : date.mdy(t2) : $month : [1] 11 : $day :