R在lubridate中操纵日期和时间
示例
date <- now() date ## "2016-07-22 03:42:35 IST" year(date) ## 2016 minute(date) ## 42 wday(date, label = T, abbr = T) # [1] Fri # Levels: Sun < Mon < Tues < Wed < Thurs < Fri < Sat day(date) <- 31 ## "2016-07-31 03:42:35 IST" # If an element is set to a larger value than it supports, the difference # will roll over into the next higher element day(date) <- 32 ## "2016-08-01 03:42:35 IST"
热门推荐
10 怎么说祝福语简短
11 唯美的祝福语简短的
12 带清的简短祝福语
13 新年给妹妹祝福语简短
14 信耶稣的人祝福语简短
15 十月简短祝福语
16 青春告白祖国简短祝福语
17 团队文案祝福语简短励志
18 20岁简短生日祝福语