我是靠谱客的博主 彩色小鸭子,最近开发中收集的这篇文章主要介绍C语言程序 查找星期,查找星期几,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

Let's say that I have a date in R and it's formatted as follows.

date

2012-02-01

2012-02-01

2012-02-02

Is there any way in R to add another column with the day of the week associated with the date? The dataset is really large, so it would not make sense to go through manually and make the changes.

df = data.frame(date=c("2012-02-01", "2012-02-01", "2012-02-02"))

So after adding the days, it would end up looking like:

date day

2012-02-01 Wednesday

2012-02-01 Wednesday

2012-02-02 Thursday

Is this possible? Can anyone point me to a package that will allow me to do this?

Just trying to automatically generate the day by the date.

最后

以上就是彩色小鸭子为你收集整理的C语言程序 查找星期,查找星期几的全部内容,希望文章能够帮你解决C语言程序 查找星期,查找星期几所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(50)

评论列表共有 0 条评论

立即
投稿
返回
顶部