On 17/07/2012, Rui Barradas <ruipbarra...@sapo.pt> wrote: > Hello, > > That's not the error I've had. You must be aware that read.table creates > a data.frame and therefore the object 'timestamps' is NOT holding time > stamps, it's holding a vector, 'V1', of time stamps. >
Was not aware of the significance of the data frame of vector values. > ..., stringsAsFactors=FALSE) > Can confirm the success of adding this parameter to the command 'read.table' > timestamps <- as.POSIXct(timestamps$V1, format="%H:%M:%S") # here > > h1 <- cut(timestamps, breaks="hour") > > And the rest works. > Confirmed, thanks. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.