[R] exist "as.time"
Petr Pikal
petr.pikal at precheza.cz
Mon Sep 8 16:15:51 CEST 2003
Hallo
On 8 Sep 2003 at 10:05, solares at unsl.edu.ar wrote:
> Hi, żExist somewhere as.Time in R, how i cant convert hours in number
> for example: v<-08:00:01 x<-as.Time(v) and x is a integer.Thanks
If you use POSIX format for date and time
v$hour
will give you hour
If v is a character vector some subsetting function
?substr
can be probably used.
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Cheers
Petr Pikal
petr.pikal at precheza.cz
More information about the R-help
mailing list