|
楼主: xubo_xu2008
|
10523
2
R里判断某个日期是星期几的涵数? |
|
已卖:10份资源 大专生 41%
-
|
回帖推荐#day.of.week() returns a number between 0 and 6 to
#specify day of the week–0 refers to Sunday.
library(chron)
print(day.of.week(2,8,2010)) #1
print(day.of.week(2,9,2010)) #2
print(day.of.week(2,10,2010)) #3
print(day.of.week(2,11,2010)) #4
print(day.of.week(2,12,2010)) #5
print(day.of.week(2,13,2010)) #6
print(day.of.week(2,14,2010)) #0
print(day.of.week(2,15,2010)) #1
本帖被以下文库推荐
| ||
|
|
| ||||||||||||||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


