小编Geo*_*aga的帖子

POSIXlt组件的提取在R 3.4.4中运行良好,但R 3.5.0中的错误.为什么?

1)R版本3.4.4(2018-03-15)

my.timedate <- as.POSIXlt('2016-01-01 16:00:00')  
# print(attributes(my.timedate))  
print(my.timedate[['hour']])  

[1] 16
Run Code Online (Sandbox Code Playgroud)

2)R版本3.5.0(2018-04-23)

my.timedate <- as.POSIXlt('2016-01-01 16:00:00')  
# print(attributes(my.timedate))  
print(my.timedate[['hour']]) 
Run Code Online (Sandbox Code Playgroud)

FUN中的错误(X [[i]],...):下标越界

datetime r posixlt

6
推荐指数
3
解决办法
122
查看次数

标签 统计

datetime ×1

posixlt ×1

r ×1