On Tue, 5 Oct 2004 "[EMAIL PROTECTED]" (but with no name nor signature) wrote:
Quoting someone without credit (and therefore in breach of their copyright) > > If a.lt and b.lt are the two vectors of POSIXlt dates then try > > converting each to POSIXct and unclassing to make each numeric. > > Take the mean of the two numeric vectors and convert them back to > > I see. I'm a little confused with the use of class/unclass versus > as.XX. For example, instead of using unclass, why wouldn't I use > as.numeric? Could someone explain the difference? That advice is wrong: you should not be unclassing before forming the mean as mean() has a method for POSIXct. -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595 ______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html