Hi all, <div><br></div><div>I often have a date index in a data frame that I don&#39;t really care to keep as a time series because I don&#39;t do any sort of smoothing or anything, but I prefer to keep it as a date class (or POSIXct or whatever) so I can do things like only get data past a certain date, or so plots will format correctly.</div>

<div><br></div><div>I&#39;ve found that any time I time to make a date class a key variable it complains that it can&#39;t be converted to integer without losing information. I&#39;ve had to resort to saving them as factors and then using as.POSIXct whenever i want them as dates, which is annoying and error prone.</div>

<div><br></div><div>Does anyone have a better way? POSIXct supports all standard equality functions, and (I&#39;m pretty sure) you can just convert into unix seconds without losing anything, so why does it complain?</div>

<div><br></div><div>-Chris</div>