小编not*_*odr的帖子

如何使用POSIX DateTime维护时区并避免R中强制引入的NA?

我创建了一个时间序列数据框,我将用它来合并其他时间序列数据.

dates2010 <- seq(as.POSIXct("2010-06-15 00:00:00", tz = "GMT"), as.POSIXct("2010-09-15 23:00:00", tz = "GMT"), by="hour")  # make string of DateTimes for summer 2010
dates2011 <- seq(as.POSIXct("2011-06-15 00:00:00", tz = "GMT"), as.POSIXct("2011-09-15 23:00:00", tz = "GMT"), by="hour")  # make string of DateTimes for summer 2011
dates <- c(dates2010, dates2011)                           # combine the dates from both years
sites <- c("a", "b", "c")                                  # make string of all sites
datereps <- rep(dates, length(sites))                      # repeat the date string the same number of times as …
Run Code Online (Sandbox Code Playgroud)

datetime r time-series posixct

1
推荐指数
1
解决办法
142
查看次数

标签 统计

datetime ×1

posixct ×1

r ×1

time-series ×1