search for: mydate1

Displaying 1 result from an estimated 1 matches for "mydate1".

Did you mean: mydate
2009 Jul 11
2
Date conversions
...g up as 2020 after conversion. That's just wrong. 2) Sometimes I get NAs. That I don't understand. Can anyone see what I'm doing wrong here? As I say, I think I'd like to convert 01/03/2004 into 1040103 as this numeric format seems very good for doing comparisons. The code: MyDate1 = read.csv("C:\\Date1.txt",header=TRUE) MyDate2 = read.csv("C:\\Date2.txt",header=TRUE) MyDate1 Date1 = MyDate1$Date class(Date1) mode(Date1) Date1 Date1 = as.Date(Date1, "%m/%d/%y") class(Date1) mode(Date1) Date1 MyDate2 Date2 = MyDate2$EnDate class(Date2) mode(Dat...