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 工厂祝福语简短10字
14 猪年给老师祝福语简短
15 祝福语老人简短话语
16 写给兄弟的祝福语简短
17 幼儿节日祝福语大全简短
18 新大学开学祝福语简短