FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

yearqtr() could optionally output 2025Q4 format · Issue #7694 · Rdatatable/data.table · GitHub

yearqtr() could optionally output 2025Q4 format #7694

Description

data.table::yearqtr("2025-12-31")
#[1] 2025.75
data.table::yearqtr(as.Date("2025-12-31"))
#[1] 2025.75

there could be new argument format = c("numeric", "character") and the latter one would produce

2025Q1
2025Q2
2025Q3
2025Q4

so commonly used format

current workaround is to have wrapper

paste(data.table::year("2025-12-31"), data.table::quarter("2025-12-31"), sep = "Q")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL