There are special classes in R, that will, that represent dates and times, that will allow you to do numerical and statistical calculations. dates use the date class, times use either the POSlXct or POSlXlt class. and then character streams can be coerced to either a date or a time, class using the strptime function or as.Date, as.POSlXlt, and POSlX, as.POSlXct. 