VOOZH about

URL: https://www.geeksforgeeks.org/r-language/determine-the-quarter-in-which-the-specific-date-lies-in-r-programming-quarters-function/

⇱ Determine the Quarter in which the Specific Date lies in R Programming - quarters() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Determine the Quarter in which the Specific Date lies in R Programming - quarters() Function

Last Updated : 15 Jul, 2025
quarters() function in R Language is used to determine the quarter in which a specific date passed to it as argument lies.
Syntax: quarters(date) Parameters: date: Date to be checked
Example 1: Output:
[1] "2020-06-23 UTC"
[1] "Q2"
Example 2: Output:
[1] "1994-01-17 UTC"
[1] "Q1"
Comment
Article Tags:

Explore