Exercise

Creating a sequence with full_seq()

The full_seq() function will look for the minimal and maximal values inside the vector you pass it and will then generate a full sequence of numbers with a fixed period in between them. When used inside the complete() function, full_seq() is a handy tool to make sure there are no missing observations in your data. Before combining these two functions you'll generate a few sequences with full_seq() on its own to get the hang of this function.

Instructions 1/3

undefined XP
  • 1
    • Use full_seq() to create a sequence with all years from 2020 till 2030.
  • 2
    • Use full_seq() to create a sequence with all decades from 1980 till 2030.
  • 3
    • Use full_seq() to create a sequence with all dates in 1980 using the outer_dates vector.