我可以创建for循环将日历日期划分为R中的唯一星期吗?

我有一个日期列表(mm / dd / yyyy)和相关的星期几,其中每个日期代表对事件的观察(请参见下文)。

Date        DOTW
1/2/2019    Wednesday
1/5/2019    Saturday
1/15/2019   Tuesday
1/17/2019   Thursday
1/22/2019   Tuesday
1/25/2019   Friday
1/25/2019   Friday
2/4/2019    Monday
2/7/2019    Thursday

我想创建一个以星期天(x轴)和y轴观察数(日期在列表中出现的次数)开头的星期几的图。该图将以多行结尾,在日期范围内,每个唯一的星期对应一行。

我相信我需要创建一个for循环来循环显示星期,但是我不确定保持每周分隔的最佳方法,而无需手动创建星期数的第三列。

I have looked up other similar posts (How to divide db dates into weeks?, Convert dates into weeks, etc.) but have not found an answer for this specific question. I have also read through the features of the lubridate package but again, not sure it will meet these specific needs.

谢谢!