R seq() and seq.Date()


  • These are base R function
  • Used to generate a regular seqence



  • from: the starting point
  • The end values of the sequence
  • by : increment of the sequence
  • length.out: length of the sequence
  • along.with: optional to specify the vector

Using seq()

Using seq.Date() function:

Example 2

Now, let us split the date table above: use the tidyr::seperate()

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top