as.POSIXctUTC: as POSIXctUTC

Description Usage Arguments Author(s) Examples

Description

construct a time in timezone UTC and set tzone attribute to UTC for correct printing

Usage

1

Arguments

x

An object to be converted.

Author(s)

Thomas Wutzler, Oscar Perez Priego

Examples

1
2
3
4
5
6
7
8
#tmp1 <- as.POSIXct(c("2014-06-23 00:00:01","2014-06-23 05:00:01"))
#plot(tmp1)    
tmp <- as.POSIXctUTC(c("2014-06-23 00:00:01","2014-06-23 05:00:01"))
print(tmp)
# note that teh following it is not converted to local 
# time e.g. CET, but ggplot respects timezone attribute
plot(tmp)    
#ggplot(data.frame(date=tmp, y=seq_along(tmp)), aes(date,y)) + geom_point() 

bgctw/RespChamberProc documentation built on May 14, 2019, 10:33 a.m.