Description
- For each line below, that explains the Date formats, give an example (and explain it) on how the date format would look as an output from a code (line is for CODE and MEANING)
-
- %a
- %c
- %j
- %m
- %p
- %S
- %x
- Provide R commands to do the following:
-
- subtract date 020-01-01 from 2021-01-01 (in R)
- subtract time “2022-11-08 03:14:35 PST” from “2022-11-09 26:14:35 PST”
- extract seconds of the day and day from data
- find intervals between the dates
- generate monthly sequence of dates of length 5 starting at “2020-04-21”
- exemplify and explain the use of
-
- lapply()
- sapply()
- vapply()
See rubric for the grading.
Dates and times needed for this assignment