Remove dmonths() exercise (#944)

This commit is contained in:
Jakob Krigovsky 2021-04-18 15:43:06 +02:00 committed by GitHub
parent c15f6e5b57
commit 5785fc662c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions

View File

@ -539,17 +539,15 @@ knitr::include_graphics("diagrams/datetimes-arithmetic.png")
### Exercises
1. Why is there `months()` but no `dmonths()`?
2. Explain `days(overnight * 1)` to someone who has just started learning R.
1. Explain `days(overnight * 1)` to someone who has just started learning R.
How does it work?
3. Create a vector of dates giving the first day of every month in 2015.
2. Create a vector of dates giving the first day of every month in 2015.
Create a vector of dates giving the first day of every month in the *current* year.
4. Write a function that given your birthday (as a date), returns how old you are in years.
3. Write a function that given your birthday (as a date), returns how old you are in years.
5. Why can't `(today() %--% (today() + years(1))) / months(1)` work?
4. Why can't `(today() %--% (today() + years(1))) / months(1)` work?
## Time zones