[R] return unique values from date/time class object

From: McClatchie, Sam (PIRSA-SARDI) <mcclatchie.sam_at_saugov.sa.gov.au>
Date: Mon 15 Aug 2005 - 17:27:12 EST

OS: Linux Mandrake 10.1
release: R 2.0.0
editor: GNU Emacs 21.3.2
front-end: ESS 5.2.3


I have a wind speed time series with a normal frequency distribution and a spike in the 5 metres/second bin. The most likely explanation is that the instrument was returning duplicate values at this speed. To check this, I want to extract all the unique times from the series. However, unique() works with vectors and the object is POSIXt class. I've looked for a similar function to unique() that will work with this class, but have failed to find one.

Any suggestions?



Sam McClatchie,
Biological oceanography
South Australian Aquatic Sciences Centre PO Box 120, Henley Beach 5022
Adelaide, South Australia
email <mcclatchie.sam@saugov.sa.gov.au>
Cellular: 0431 304 497
Telephone: (61-8) 8207 5448
FAX: (61-8) 8207 5481
Research home page <http://www.members.iinet.net.au/~s.mcclatchie/>   

//// \\\\ <)Xx><< ///// \\\\\\ ><(((>

  >><(((> ...>><xX(>O<)Xx><<

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Aug 15 17:35:23 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:49 EST