Re: [R] Date_Time detected as Duplicated (but they are not!)

2011-05-18 Thread Timothy Bates
Dear Augustin: What are the duplicated times? Looks they really do occur twice or more in your original data: perhaps two stamps less time apart than the resolution of your clock? delme[duplicated(delme)] aur2009[[duplicated(delme),1] On 18 May 2011, at 8:49 AM, Agustin Lobo wrote: > and is it

Re: [R] Date_Time detected as Duplicated (but they are not!)

2011-05-18 Thread Agustin Lobo
and is it not possible to ignore savings time? My data are in UTC, with no savings time changes > delme = strptime(aur2009[,1], "%m/%d/%Y %H:%M",tz="UTC") > any(duplicated(delme)) [1] TRUE > delme = as.POSIXct(aur2009[,1], "%m/%d/%Y %H:%M",tz="UTC") > any(duplicated(delme)) [1] TRUE Agus On Wed,

Re: [R] Date_Time detected as Duplicated (but they are not!)

2011-05-17 Thread Michael Sumner
See under "Note" in ?strptime: Remember that in most timezones some times do not occur and some occur twice because of transitions to/from summer time. ‘strptime’ does not validate such times (it does not assume a specific timezone), but conversion by ‘as.POSIXct’) will d

[R] Date_Time detected as Duplicated (but they are not!)

2011-05-17 Thread Agustin Lobo
I have a problem with duplicated date_time stamps that I do not see as duplicated. I read a file with observations taken every 30 minutes: > aur2009=read.csv(paste(datadir,"AUR_ECPP_2009.csv",sep="/"),sep=";",stringsAsFactors=F) > aur2009[1:3,1:5] Date.Time E_filled E_filled_flag LE_filled