Hello!

I have the following:

> time1a <- as.POSIXct(paste(2008,08,01,sep="-"))
> time1b <- as.POSIXct(paste(2008,08,11,sep="-"))
> time1a
[1] "2008-08-01 CDT"
> time1b
[1] "2008-08-11 CDT"
> time1c <- seq(from=as.POSIXct(time1a),to=as.POSIXct(time1b),by="days")
> class(time1c)
[1] "POSIXct" "POSIXt"
> print(time1c)
 [1] "2008-08-01 CDT" "2008-08-02 CDT" "2008-08-03 CDT" "2008-08-04 CDT"
 [5] "2008-08-05 CDT" "2008-08-06 CDT" "2008-08-07 CDT" "2008-08-08 CDT"
 [9] "2008-08-09 CDT" "2008-08-10 CDT" "2008-08-11 CDT"
>

I have generated the correct sequence.  However, time1c must be a POSIXct
object.  How do I remove the second class, please?

Thanks,
Erin



-- 
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodg...@gmail.com

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to