An R package to parse ISO Weeks into ISO Months for the years 2024..=2027.
Install from GitHub:
# with devtools
# install.packages("devtools")
devtools::install_github("ixpantia/iso8601")
# with pak
# install.packages("pak")
pak::pkg_install("ixpantia/iso8601")This is a quick and dirty package that implements a ISO 8601 month lookup table based manual inspection of this week number calendar that includes months. This is the one functionality that is lacking in the existing R packages.
User Beware: LLMs happily give you a solution to get the ISO month, based on packages like ISO Weeks, or even base R. So far all suggestions were incorrect.
There is no reason to use Rust, we thought that there might be a Rust library to handle this. This is quick an dirty, to solve an immediate need so we just worked with what was there.
There are formulas apparently to calculate this, but as soon as the wikipage started to talk about overlapping weeks ("equal weeks") we gave up, so that we can focus on the report.
This looks like a fun project for a rainy afternoon.
library(iso8601)
# Parse a standard ISO 8601 date-time
get_iso_week(2025, 41)Contributions are welcome! Please feel free to submit a Pull Request.