[R] generating a sequence of seconds
Erin Hodgess
erinm.hodgess at gmail.com
Tue Aug 12 20:51:16 CEST 2014
Hello!
If I would like to generate a sequence of seconds for a date, I would do
the following:
x <- seq(from=as.POSIXct(2014-08-12 00:00:00),to=as.POSIXct(2014-08-12
23:59:59),by="secs")
What if I just want the seconds vector without the date, please? Is there
a convenient way to create such a vector, please?
thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Mathematical and Statistics
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
[[alternative HTML version deleted]]
More information about the R-help
mailing list