Read your data using read.table with as.is=TRUE then you could reformat the date column to make R understand that it is a date, depending on your raw date format. Thanks. -- View this message in context: http://r.789695.n4.nabble.com/For-loop-help-tp4636155p4636157.html Sent from the R help mailing list archive at Nabble.com.