Not sure I can translate the format of your Date column correctly, however the command DF1$Date <- as.Date(DF1$Date, format=’formatstr’)
Will convert the dates into a format correctly handled by R. ?strptime Should give you an idea of what formatstr should look like. I.e. if date = 160721 as.Date(date, format=”%y%M%d”) From: Bhaskar Mitra [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.