Skip to content

ixpantia/iso8601

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iso8601

An R package to parse ISO Weeks into ISO Months for the years 2024..=2027.

Installation

Install from GitHub:

# with devtools
# install.packages("devtools")
devtools::install_github("ixpantia/iso8601")

# with pak
# install.packages("pak")
pak::pkg_install("ixpantia/iso8601")

Features

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.

Future worked

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.

Usage

Parsing ISO 8601 Strings

library(iso8601)

# Parse a standard ISO 8601 date-time
get_iso_week(2025, 41)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •