lubridate's as_date
Converting data to the proper class is a valuable R skill; now, you'll take your weekends object and convert it to the Date class using lubridate.
The lubridate package and the weekends object have already been loaded for you!
Deze oefening maakt deel uit van de cursus
Manipulating Time Series Data in R
Oefeninstructies
- Use
lubridateto convertweekendsto theDateclass, and assign it toweekends_date. - Print a summary of
weekends_dateto the console.
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
# Convert weekends to Date class with lubridate
___
# Print a summary of weekends_date
___