diff --git a/404.html b/404.html index 1fb20db..3531d6b 100644 --- a/404.html +++ b/404.html @@ -20,7 +20,7 @@ ymd - 0.1.1 + 0.1.2 diff --git a/LICENSE-text.html b/LICENSE-text.html index 62fc034..31b61fa 100644 --- a/LICENSE-text.html +++ b/LICENSE-text.html @@ -7,7 +7,7 @@ ymd - 0.1.1 + 0.1.2 diff --git a/LICENSE.html b/LICENSE.html index 4f1fcb7..b455006 100644 --- a/LICENSE.html +++ b/LICENSE.html @@ -7,7 +7,7 @@ ymd - 0.1.1 + 0.1.2 diff --git a/authors.html b/authors.html index fbabad3..0b8915b 100644 --- a/authors.html +++ b/authors.html @@ -7,7 +7,7 @@ ymd - 0.1.1 + 0.1.2 @@ -54,13 +54,13 @@ Citation Tan X (2024). ymd: Parse 'YMD' Format Number or String to Date. -R package version 0.1.1, https://github.com/shrektan/ymd, https://shrektan.github.io/ymd/. +R package version 0.1.2, https://github.com/shrektan/ymd, https://shrektan.github.io/ymd/. @Manual{, title = {ymd: Parse 'YMD' Format Number or String to Date}, author = {Xianying Tan}, year = {2024}, - note = {R package version 0.1.1, https://github.com/shrektan/ymd}, + note = {R package version 0.1.2, https://github.com/shrektan/ymd}, url = {https://shrektan.github.io/ymd/}, } diff --git a/index.html b/index.html index 4480ba1..d6b6765 100644 --- a/index.html +++ b/index.html @@ -22,7 +22,7 @@ ymd - 0.1.1 + 0.1.2 diff --git a/news/index.html b/news/index.html index 1081b38..b8d2643 100644 --- a/news/index.html +++ b/news/index.html @@ -7,7 +7,7 @@ ymd - 0.1.1 + 0.1.2 @@ -32,6 +32,10 @@ Changelog Source: NEWS.md + +ymd 0.1.2 +Added rustc version reporting in the installation log as per CRAN policy. + ymd 0.1.1CRAN release: 2024-08-17 Fix the calling non-API entry points issue. diff --git a/pkgdown.yml b/pkgdown.yml index 7b304fe..abaa620 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -2,7 +2,7 @@ pandoc: 3.1.11 pkgdown: 2.1.0 pkgdown_sha: ~ articles: {} -last_built: 2024-08-18T02:59Z +last_built: 2024-08-23T15:35Z urls: reference: https://shrektan.github.io/ymd/reference article: https://shrektan.github.io/ymd/articles diff --git a/reference/beop.html b/reference/beop.html index 9a377bf..4382fc6 100644 --- a/reference/beop.html +++ b/reference/beop.html @@ -15,7 +15,7 @@ ymd - 0.1.1 + 0.1.2 diff --git a/reference/date_part.html b/reference/date_part.html index adc4f4d..045f95c 100644 --- a/reference/date_part.html +++ b/reference/date_part.html @@ -11,7 +11,7 @@ ymd - 0.1.1 + 0.1.2 diff --git a/reference/edate.html b/reference/edate.html index 143d2ec..bc9419e 100644 --- a/reference/edate.html +++ b/reference/edate.html @@ -7,7 +7,7 @@ ymd - 0.1.1 + 0.1.2 diff --git a/reference/index.html b/reference/index.html index 2bad53f..c8c8f9d 100644 --- a/reference/index.html +++ b/reference/index.html @@ -7,7 +7,7 @@ ymd - 0.1.1 + 0.1.2 diff --git a/reference/ymd.html b/reference/ymd.html index 3a3e2f8..2d01f1b 100644 --- a/reference/ymd.html +++ b/reference/ymd.html @@ -11,7 +11,7 @@ ymd - 0.1.1 + 0.1.2 diff --git a/search.json b/search.json index c56f652..594fcf3 100644 --- a/search.json +++ b/search.json @@ -1 +1 @@ -[{"path":"https://shrektan.github.io/ymd/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2024 ymd authors Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Xianying Tan. Author, maintainer. Hiroaki Yutani. Contributor. configure, configure.win, tools/configure.R authors dependency Rust crates. Contributor. see inst/AUTHORS file details","code":""},{"path":"https://shrektan.github.io/ymd/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Tan X (2024). ymd: Parse 'YMD' Format Number String Date. R package version 0.1.1, https://github.com/shrektan/ymd, https://shrektan.github.io/ymd/.","code":"@Manual{, title = {ymd: Parse 'YMD' Format Number or String to Date}, author = {Xianying Tan}, year = {2024}, note = {R package version 0.1.1, https://github.com/shrektan/ymd}, url = {https://shrektan.github.io/ymd/}, }"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The authors of the dependency Rust crates:"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"android_system_properties (version 0.1.5):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Nicolas Silva"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"android-tzdata (version 0.1.1):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"RumovZ"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"autocfg (version 1.3.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Josh Stone"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"bumpalo (version 3.16.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Nick Fitzgerald"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"cc (version 1.1.7):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Alex Crichton"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"cfg-if (version 1.0.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Alex Crichton"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"chrono (version 0.4.38):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Brandon W. Maister"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Dirkjan Ochtman"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Kang Seonghoon"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Eric Sheppard"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Paul Dicker"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"core-foundation-sys (version 0.8.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The Servo Project Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"ctor (version 0.2.8):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Matt Mastracci"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"extendr-api (version 0.7.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"andy-thomason"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Thomas Down"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Mossa Merhi Reimert"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Claus O. Wilke"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Hiroaki Yutani"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Ilia A. Kosenkov"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Michael Milton"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"extendr-engine (version 0.7.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"andy-thomason"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Thomas Down"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Mossa Merhi Reimert"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Claus O. Wilke"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Hiroaki Yutani"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Ilia A. Kosenkov"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Michael Milton"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"extendr-macros (version 0.7.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"andy-thomason"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Thomas Down"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Mossa Merhi Reimert"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Claus O. Wilke"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Hiroaki Yutani"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Ilia A. Kosenkov"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Michael Milton"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"iana-time-zone (version 0.1.60):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Andrew Straw"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"René Kijewski"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Ryan Lopopolo"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"iana-time-zone-haiku (version 0.1.2):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"René Kijewski"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"js-sys (version 0.3.69):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The wasm-bindgen Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"libc (version 0.2.155):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The Rust Project Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"libR-sys (version 0.7.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"andy-thomason"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Thomas Down"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Mossa Merhi Reimert"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Claus O. Wilke"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Ilia A. Kosenkov"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Hiroaki Yutani"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"log (version 0.4.22):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The Rust Project Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"num-traits (version 0.2.19):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The Rust Project Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"once_cell (version 1.19.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Aleksey Kladov"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"paste (version 1.0.15):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"David Tolnay"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"proc-macro2 (version 1.0.86):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"David Tolnay"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Alex Crichton"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"quote (version 1.0.36):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"David Tolnay"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"syn (version 2.0.72):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"David Tolnay"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"unicode-ident (version 1.0.12):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"David Tolnay"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"wasm-bindgen (version 0.2.92):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The wasm-bindgen Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"wasm-bindgen-backend (version 0.2.92):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The wasm-bindgen Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"wasm-bindgen-macro (version 0.2.92):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The wasm-bindgen Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"wasm-bindgen-macro-support (version 0.2.92):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The wasm-bindgen Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"wasm-bindgen-shared (version 0.2.92):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The wasm-bindgen Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows_aarch64_gnullvm (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows_aarch64_msvc (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows_i686_gnu (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows_i686_gnullvm (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows_i686_msvc (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows_x86_64_gnu (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows_x86_64_gnullvm (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows_x86_64_msvc (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows-core (version 0.52.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows-targets (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":"https://shrektan.github.io/ymd/index.html","id":"ymd","dir":"","previous_headings":"","what":"Parse YMD Format Number or String to Date","title":"Parse YMD Format Number or String to Date","text":"Convert ‘YMD’ format number string Date efficiently, e.g., 211225 .Date(\"2021-12-25\"), using Rust’s standard library. also provides helper functions handle Date, e.g., quick finding beginning end given period, adding months Date, etc. ’s similar lubridate package much lighter focuses Date objects.","code":""},{"path":[]},{"path":"https://shrektan.github.io/ymd/index.html","id":"binary-version-no-rust-toolchain-required","dir":"","previous_headings":"Installation","what":"Binary version (no Rust toolchain required)","title":"Parse YMD Format Number or String to Date","text":"CRAN provides binary package. , Windows macOS, package can installed via: Linux, can try use RSPM (RStudio Package Manager) repo provided RStudio PBC, via (remember choose correct binary repo URL platform):","code":"install.packages(\"ymd\") install.packages(\"ymd\", repos = \"{RSPM-Repo-URL}\")"},{"path":"https://shrektan.github.io/ymd/index.html","id":"source-version-rust-toolchain-required","dir":"","previous_headings":"Installation","what":"Source version (Rust toolchain required)","title":"Parse YMD Format Number or String to Date","text":"want build dev version source, ’ll need Rust toolchain, can installed following instructions Rust book. , can build package via:","code":"remotes::install_github(\"ymd\")"},{"path":"https://shrektan.github.io/ymd/index.html","id":"use-cases-and-benchmarks","dir":"","previous_headings":"","what":"Use Cases and Benchmarks","title":"Parse YMD Format Number or String to Date","text":"","code":"print_bmk <- function(x) { x[[1]] <- format(x[[1]]) x[[5]] <- format(x[[5]]) rnd <- \\(v) if (is.numeric(v)) round(v, 1) else v x[, 1:8] |> lapply(rnd) |> as.data.frame() |> knitr::kable() |> print() } run_bmk <- function(..., time_unit = \"us\") { bench::mark(..., time_unit = time_unit) |> print_bmk() }"},{"path":"https://shrektan.github.io/ymd/index.html","id":"ymd-1","dir":"","previous_headings":"Use Cases and Benchmarks","what":"ymd","title":"Parse YMD Format Number or String to Date","text":"","code":"x <- c(\"210101\", \"21/02/03\", \"89-1-03\", \"1989.03.05\", \"01 02 03\") x <- rep(x, 100) run_bmk( ymd::ymd(x), lubridate::ymd(x) ) x <- c(210101, 210224, 211231, 19890103) x <- rep(x, 100) run_bmk( ymd::ymd(x), lubridate::ymd(x) ) x <- c(\"2021-01-01\", \"2022-12-31\", \"1995-03-22\") x <- rep(x, 100) run_bmk( ymd::ymd(x), lubridate::ymd(x), as.Date(x) ) x <- ymd::ymd(210515) + 1:100 run_bmk( ymd::eop$tm(x), lubridate::ceiling_date(x, \"month\") - 1 )"},{"path":"https://shrektan.github.io/ymd/index.html","id":"edate","dir":"","previous_headings":"Use Cases and Benchmarks","what":"edate","title":"Parse YMD Format Number or String to Date","text":"","code":"`%m+%` <- lubridate::`%m+%` x <- ymd::ymd(c(200115, 200131, 200229, 200331, 200401)) x <- rep(x, 100) run_bmk( ymd::edate(x, 2), x %m+% months(2) ) run_bmk( ymd::edate(x, -12), x %m+% months(-12) )"},{"path":"https://shrektan.github.io/ymd/index.html","id":"extract-date-part","dir":"","previous_headings":"Use Cases and Benchmarks","what":"Extract Date Part","title":"Parse YMD Format Number or String to Date","text":"","code":"# tweak from https://github.com/Rdatatable/data.table/pull/5300 set.seed(373L) x <- as.Date(data.table::as.IDate(sample(seq(-25000, 45000), 1e6, TRUE))) run_bmk( data.table::year(x), lubridate::year(x), funchir::quick_year(x), ymd::year(x) ) #> Warning: Some expressions had a GC in every iteration; so filtering is #> disabled. run_bmk( data.table::month(x), lubridate::month(x), ymd::month(x) ) #> Warning: Some expressions had a GC in every iteration; so filtering is #> disabled. run_bmk( data.table::quarter(x), lubridate::quarter(x), ymd::quarter(x) ) #> Warning: Some expressions had a GC in every iteration; so filtering is #> disabled. run_bmk( data.table::yday(x), lubridate::yday(x), funchir::quick_yday(x), ymd::yday(x) ) #> Warning: Some expressions had a GC in every iteration; so filtering is #> disabled. run_bmk( data.table::mday(x), lubridate::mday(x), funchir::quick_mday(x), ymd::mday(x) ) run_bmk( data.table::wday(x), lubridate::wday(x), ymd::wday(x) ) run_bmk( data.table::isoweek(x), lubridate::isoweek(x), ymd::isoweek(x) ) #> Warning: Some expressions had a GC in every iteration; so filtering is #> disabled."},{"path":"https://shrektan.github.io/ymd/index.html","id":"session-info","dir":"","previous_headings":"","what":"Session Info","title":"Parse YMD Format Number or String to Date","text":"","code":"xfun::session_info() #> R version 4.4.1 (2024-06-14) #> Platform: aarch64-apple-darwin20 #> Running under: macOS Sonoma 14.6 #> #> Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8 #> #> Package version: #> base64enc_0.1.3 bench_1.1.3 bslib_0.8.0 cachem_1.1.0 #> cli_3.6.3 compiler_4.4.1 cpp11_0.4.7 data.table_1.15.4 #> digest_0.6.36 evaluate_0.24.0 fansi_1.0.6 fastmap_1.2.0 #> fontawesome_0.5.2 fs_1.6.4 funchir_0.2.2 generics_0.1.3 #> glue_1.7.0 graphics_4.4.1 grDevices_4.4.1 highr_0.11 #> htmltools_0.5.8.1 jquerylib_0.1.4 jsonlite_1.8.8 knitr_1.48 #> lifecycle_1.0.4 lubridate_1.9.3 magrittr_2.0.3 memoise_2.0.1 #> methods_4.4.1 mime_0.12 pillar_1.9.0 pkgconfig_2.0.3 #> profmem_0.6.0 R6_2.5.1 rappdirs_0.3.3 rlang_1.1.4 #> rmarkdown_2.27 sass_0.4.9 stats_4.4.1 tibble_3.2.1 #> timechange_0.3.0 tinytex_0.52 tools_4.4.1 utf8_1.2.4 #> utils_4.4.1 vctrs_0.6.5 xfun_0.46 yaml_2.3.10 #> ymd_0.1.1"},{"path":"https://shrektan.github.io/ymd/reference/beop.html","id":null,"dir":"Reference","previous_headings":"","what":"Find the Beginning or End of Period — beop","title":"Find the Beginning or End of Period — beop","text":"bop eop contains list functions, whose names consist two letters, first stands last, , next second stands year, quarter, month, week. example, eop$ty() means \"ending period year\" bop$lm() means \"beginning period last month\".","code":""},{"path":"https://shrektan.github.io/ymd/reference/beop.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Find the Beginning or End of Period — beop","text":"functions' signatures , one argument x, Date values can converted Date via ymd().","code":""},{"path":"https://shrektan.github.io/ymd/reference/beop.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Find the Beginning or End of Period — beop","text":"","code":"bop$ty(as.Date(\"2021-03-02\")) #> [1] \"2021-01-01\" ## supports 'YMD' formatted integer or string bop$ty(210302) #> [1] \"2021-01-01\" eop$tm(200201) #> [1] \"2020-02-29\""},{"path":"https://shrektan.github.io/ymd/reference/date_part.html","id":null,"dir":"Reference","previous_headings":"","what":"Fast Date Part Extracting — date_part","title":"Fast Date Part Extracting — date_part","text":"date helper functions provide similar functionalities like data.table lubridate package. implemented Rust Lang's standard library fast.","code":""},{"path":"https://shrektan.github.io/ymd/reference/date_part.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fast Date Part Extracting — date_part","text":"","code":"year(ref_date) month(ref_date) quarter(ref_date) isoweek(ref_date) isowday(ref_date) wday(ref_date) mday(ref_date) yday(ref_date)"},{"path":"https://shrektan.github.io/ymd/reference/date_part.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fast Date Part Extracting — date_part","text":"ref_date, Date vector. try convert input date via ymd(), input Date.","code":""},{"path":"https://shrektan.github.io/ymd/reference/date_part.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fast Date Part Extracting — date_part","text":"integer vector","code":""},{"path":"https://shrektan.github.io/ymd/reference/date_part.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Fast Date Part Extracting — date_part","text":"year, month, quarter: get year, month, quarter part yday: day year mday: day month wday: day week (Sunday 1) isoweek: ISO 8601 week isowday: day week (ISO 8601 weekday number, Monday 1)","code":""},{"path":"https://shrektan.github.io/ymd/reference/date_part.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"Fast Date Part Extracting — date_part","text":"ISO week day, https://en.wikipedia.org/wiki/ISO_week_date ISO 8601, https://en.wikipedia.org/wiki/ISO_8601","code":""},{"path":"https://shrektan.github.io/ymd/reference/date_part.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Fast Date Part Extracting — date_part","text":"","code":"year(210205) #> [1] 2021 month(210205) #> [1] 2 quarter(210205) #> [1] 1 yday(210205) #> [1] 36 mday(210205) #> [1] 5 wday(210117) #> [1] 1 isowday(210117) #> [1] 7 isoweek(210101) #> [1] 53"},{"path":"https://shrektan.github.io/ymd/reference/edate.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate the date before / after months — edate","title":"Calculate the date before / after months — edate","text":"Calculate date / months","code":""},{"path":"https://shrektan.github.io/ymd/reference/edate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate the date before / after months — edate","text":"","code":"edate(ref_date, months)"},{"path":"https://shrektan.github.io/ymd/reference/edate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate the date before / after months — edate","text":"ref_date Date vector months number months added ref_date","code":""},{"path":"https://shrektan.github.io/ymd/reference/edate.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Calculate the date before / after months — edate","text":"function name Excel function EDATE() . returns date indicated number months ref date.","code":""},{"path":"https://shrektan.github.io/ymd/reference/edate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate the date before / after months — edate","text":"","code":"edate(as.Date(\"2020-01-31\"), 1) #> [1] \"2020-02-29\" ## supports 'YMD' formatted integer or string edate(200131, 1) #> [1] \"2020-02-29\" edate(200229, -12) #> [1] \"2019-02-28\""},{"path":"https://shrektan.github.io/ymd/reference/ymd.html","id":null,"dir":"Reference","previous_headings":"","what":"Convert 'YMD' format integer or string to Date — ymd","title":"Convert 'YMD' format integer or string to Date — ymd","text":"Transform integer strings vectors 'YMD' format Date objects. intends support limited formats (separator one '.', ' ', '-' '/' separators). See possible formats examples.","code":""},{"path":"https://shrektan.github.io/ymd/reference/ymd.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Convert 'YMD' format integer or string to Date — ymd","text":"","code":"ymd(x, ...)"},{"path":"https://shrektan.github.io/ymd/reference/ymd.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Convert 'YMD' format integer or string to Date — ymd","text":"x integer string vector 'YMD' format. Double values without decimal part allowed. ... x. merged one vector x. convinient interactive use.","code":""},{"path":"https://shrektan.github.io/ymd/reference/ymd.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Convert 'YMD' format integer or string to Date — ymd","text":"Date object. parse fails certain input, value returned NA, silently.","code":""},{"path":"https://shrektan.github.io/ymd/reference/ymd.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Convert 'YMD' format integer or string to Date — ymd","text":"","code":"ymd(c(210326, 19981225)) #> [1] \"2021-03-26\" \"1998-12-25\" ymd(c(\"2020/1/8\", \"20 1 7\", \"1998.7.1\", \"1990-02-03\")) #> [1] \"2020-01-08\" \"2020-01-07\" \"1998-07-01\" \"1990-02-03\" ymd(210420, 180322) #> [1] \"2021-04-20\" \"2018-03-22\""},{"path":"https://shrektan.github.io/ymd/news/index.html","id":"ymd-011","dir":"Changelog","previous_headings":"","what":"ymd 0.1.1","title":"ymd 0.1.1","text":"CRAN release: 2024-08-17 Fix calling non-API entry points issue.","code":""},{"path":"https://shrektan.github.io/ymd/news/index.html","id":"ymd-010","dir":"Changelog","previous_headings":"","what":"ymd 0.1.0","title":"ymd 0.1.0","text":"CRAN release: 2023-10-09 ymd() now supports ... arguments, convenient interactive use, e.g., ymd(210101, 220201). Implement date part extracting functions, including year(), month(), quarter(), isoweek(), isowday(), wday(), mday(), yday(), Redirect Rust message R’s stderr stream. Fix issues violate CRAN policies, e.g., license issues rust offline dependencies.","code":""},{"path":"https://shrektan.github.io/ymd/news/index.html","id":"ymd-001","dir":"Changelog","previous_headings":"","what":"ymd 0.0.1","title":"ymd 0.0.1","text":"CRAN release: 2022-01-06 Added NEWS.md file track changes package. Implement ymd(), bop$xx(), eop$xx() edate() Rust.","code":""}] +[{"path":"https://shrektan.github.io/ymd/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2024 ymd authors Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Xianying Tan. Author, maintainer. Hiroaki Yutani. Contributor. configure, configure.win, tools/configure.R authors dependency Rust crates. Contributor. see inst/AUTHORS file details","code":""},{"path":"https://shrektan.github.io/ymd/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Tan X (2024). ymd: Parse 'YMD' Format Number String Date. R package version 0.1.2, https://github.com/shrektan/ymd, https://shrektan.github.io/ymd/.","code":"@Manual{, title = {ymd: Parse 'YMD' Format Number or String to Date}, author = {Xianying Tan}, year = {2024}, note = {R package version 0.1.2, https://github.com/shrektan/ymd}, url = {https://shrektan.github.io/ymd/}, }"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The authors of the dependency Rust crates:"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"android_system_properties (version 0.1.5):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Nicolas Silva"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"android-tzdata (version 0.1.1):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"RumovZ"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"autocfg (version 1.3.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Josh Stone"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"bumpalo (version 3.16.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Nick Fitzgerald"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"cc (version 1.1.7):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Alex Crichton"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"cfg-if (version 1.0.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Alex Crichton"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"chrono (version 0.4.38):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Brandon W. Maister"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Dirkjan Ochtman"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Kang Seonghoon"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Eric Sheppard"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Paul Dicker"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"core-foundation-sys (version 0.8.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The Servo Project Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"ctor (version 0.2.8):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Matt Mastracci"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"extendr-api (version 0.7.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"andy-thomason"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Thomas Down"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Mossa Merhi Reimert"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Claus O. Wilke"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Hiroaki Yutani"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Ilia A. Kosenkov"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Michael Milton"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"extendr-engine (version 0.7.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"andy-thomason"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Thomas Down"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Mossa Merhi Reimert"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Claus O. Wilke"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Hiroaki Yutani"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Ilia A. Kosenkov"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Michael Milton"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"extendr-macros (version 0.7.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"andy-thomason"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Thomas Down"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Mossa Merhi Reimert"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Claus O. Wilke"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Hiroaki Yutani"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Ilia A. Kosenkov"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Michael Milton"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"iana-time-zone (version 0.1.60):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Andrew Straw"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"René Kijewski"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Ryan Lopopolo"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"iana-time-zone-haiku (version 0.1.2):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"René Kijewski"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"js-sys (version 0.3.69):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The wasm-bindgen Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"libc (version 0.2.155):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The Rust Project Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"libR-sys (version 0.7.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"andy-thomason"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Thomas Down"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Mossa Merhi Reimert"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Claus O. Wilke"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Ilia A. Kosenkov"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Hiroaki Yutani"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"log (version 0.4.22):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The Rust Project Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"num-traits (version 0.2.19):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The Rust Project Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"once_cell (version 1.19.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Aleksey Kladov"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"paste (version 1.0.15):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"David Tolnay"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"proc-macro2 (version 1.0.86):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"David Tolnay"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Alex Crichton"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"quote (version 1.0.36):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"David Tolnay"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"syn (version 2.0.72):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"David Tolnay"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"unicode-ident (version 1.0.12):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"David Tolnay"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"wasm-bindgen (version 0.2.92):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The wasm-bindgen Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"wasm-bindgen-backend (version 0.2.92):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The wasm-bindgen Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"wasm-bindgen-macro (version 0.2.92):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The wasm-bindgen Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"wasm-bindgen-macro-support (version 0.2.92):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The wasm-bindgen Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"wasm-bindgen-shared (version 0.2.92):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"The wasm-bindgen Developers"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows_aarch64_gnullvm (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows_aarch64_msvc (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows_i686_gnu (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows_i686_gnullvm (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows_i686_msvc (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows_x86_64_gnu (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows_x86_64_gnullvm (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows_x86_64_msvc (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows-core (version 0.52.0):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":[]},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"windows-targets (version 0.52.6):"},{"path":"https://shrektan.github.io/ymd/authors.html","id":null,"dir":"","previous_headings":"","what":"Additional details","title":"Authors and Citation","text":"","code":"Microsoft"},{"path":"https://shrektan.github.io/ymd/index.html","id":"ymd","dir":"","previous_headings":"","what":"Parse YMD Format Number or String to Date","title":"Parse YMD Format Number or String to Date","text":"Convert ‘YMD’ format number string Date efficiently, e.g., 211225 .Date(\"2021-12-25\"), using Rust’s standard library. also provides helper functions handle Date, e.g., quick finding beginning end given period, adding months Date, etc. ’s similar lubridate package much lighter focuses Date objects.","code":""},{"path":[]},{"path":"https://shrektan.github.io/ymd/index.html","id":"binary-version-no-rust-toolchain-required","dir":"","previous_headings":"Installation","what":"Binary version (no Rust toolchain required)","title":"Parse YMD Format Number or String to Date","text":"CRAN provides binary package. , Windows macOS, package can installed via: Linux, can try use RSPM (RStudio Package Manager) repo provided RStudio PBC, via (remember choose correct binary repo URL platform):","code":"install.packages(\"ymd\") install.packages(\"ymd\", repos = \"{RSPM-Repo-URL}\")"},{"path":"https://shrektan.github.io/ymd/index.html","id":"source-version-rust-toolchain-required","dir":"","previous_headings":"Installation","what":"Source version (Rust toolchain required)","title":"Parse YMD Format Number or String to Date","text":"want build dev version source, ’ll need Rust toolchain, can installed following instructions Rust book. , can build package via:","code":"remotes::install_github(\"ymd\")"},{"path":"https://shrektan.github.io/ymd/index.html","id":"use-cases-and-benchmarks","dir":"","previous_headings":"","what":"Use Cases and Benchmarks","title":"Parse YMD Format Number or String to Date","text":"","code":"print_bmk <- function(x) { x[[1]] <- format(x[[1]]) x[[5]] <- format(x[[5]]) rnd <- \\(v) if (is.numeric(v)) round(v, 1) else v x[, 1:8] |> lapply(rnd) |> as.data.frame() |> knitr::kable() |> print() } run_bmk <- function(..., time_unit = \"us\") { bench::mark(..., time_unit = time_unit) |> print_bmk() }"},{"path":"https://shrektan.github.io/ymd/index.html","id":"ymd-1","dir":"","previous_headings":"Use Cases and Benchmarks","what":"ymd","title":"Parse YMD Format Number or String to Date","text":"","code":"x <- c(\"210101\", \"21/02/03\", \"89-1-03\", \"1989.03.05\", \"01 02 03\") x <- rep(x, 100) run_bmk( ymd::ymd(x), lubridate::ymd(x) ) x <- c(210101, 210224, 211231, 19890103) x <- rep(x, 100) run_bmk( ymd::ymd(x), lubridate::ymd(x) ) x <- c(\"2021-01-01\", \"2022-12-31\", \"1995-03-22\") x <- rep(x, 100) run_bmk( ymd::ymd(x), lubridate::ymd(x), as.Date(x) ) x <- ymd::ymd(210515) + 1:100 run_bmk( ymd::eop$tm(x), lubridate::ceiling_date(x, \"month\") - 1 )"},{"path":"https://shrektan.github.io/ymd/index.html","id":"edate","dir":"","previous_headings":"Use Cases and Benchmarks","what":"edate","title":"Parse YMD Format Number or String to Date","text":"","code":"`%m+%` <- lubridate::`%m+%` x <- ymd::ymd(c(200115, 200131, 200229, 200331, 200401)) x <- rep(x, 100) run_bmk( ymd::edate(x, 2), x %m+% months(2) ) run_bmk( ymd::edate(x, -12), x %m+% months(-12) )"},{"path":"https://shrektan.github.io/ymd/index.html","id":"extract-date-part","dir":"","previous_headings":"Use Cases and Benchmarks","what":"Extract Date Part","title":"Parse YMD Format Number or String to Date","text":"","code":"# tweak from https://github.com/Rdatatable/data.table/pull/5300 set.seed(373L) x <- as.Date(data.table::as.IDate(sample(seq(-25000, 45000), 1e6, TRUE))) run_bmk( data.table::year(x), lubridate::year(x), funchir::quick_year(x), ymd::year(x) ) #> Warning: Some expressions had a GC in every iteration; so filtering is #> disabled. run_bmk( data.table::month(x), lubridate::month(x), ymd::month(x) ) #> Warning: Some expressions had a GC in every iteration; so filtering is #> disabled. run_bmk( data.table::quarter(x), lubridate::quarter(x), ymd::quarter(x) ) #> Warning: Some expressions had a GC in every iteration; so filtering is #> disabled. run_bmk( data.table::yday(x), lubridate::yday(x), funchir::quick_yday(x), ymd::yday(x) ) #> Warning: Some expressions had a GC in every iteration; so filtering is #> disabled. run_bmk( data.table::mday(x), lubridate::mday(x), funchir::quick_mday(x), ymd::mday(x) ) run_bmk( data.table::wday(x), lubridate::wday(x), ymd::wday(x) ) run_bmk( data.table::isoweek(x), lubridate::isoweek(x), ymd::isoweek(x) ) #> Warning: Some expressions had a GC in every iteration; so filtering is #> disabled."},{"path":"https://shrektan.github.io/ymd/index.html","id":"session-info","dir":"","previous_headings":"","what":"Session Info","title":"Parse YMD Format Number or String to Date","text":"","code":"xfun::session_info() #> R version 4.4.1 (2024-06-14) #> Platform: aarch64-apple-darwin20 #> Running under: macOS Sonoma 14.6 #> #> Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8 #> #> Package version: #> base64enc_0.1.3 bench_1.1.3 bslib_0.8.0 cachem_1.1.0 #> cli_3.6.3 compiler_4.4.1 cpp11_0.4.7 data.table_1.15.4 #> digest_0.6.36 evaluate_0.24.0 fansi_1.0.6 fastmap_1.2.0 #> fontawesome_0.5.2 fs_1.6.4 funchir_0.2.2 generics_0.1.3 #> glue_1.7.0 graphics_4.4.1 grDevices_4.4.1 highr_0.11 #> htmltools_0.5.8.1 jquerylib_0.1.4 jsonlite_1.8.8 knitr_1.48 #> lifecycle_1.0.4 lubridate_1.9.3 magrittr_2.0.3 memoise_2.0.1 #> methods_4.4.1 mime_0.12 pillar_1.9.0 pkgconfig_2.0.3 #> profmem_0.6.0 R6_2.5.1 rappdirs_0.3.3 rlang_1.1.4 #> rmarkdown_2.27 sass_0.4.9 stats_4.4.1 tibble_3.2.1 #> timechange_0.3.0 tinytex_0.52 tools_4.4.1 utf8_1.2.4 #> utils_4.4.1 vctrs_0.6.5 xfun_0.46 yaml_2.3.10 #> ymd_0.1.1"},{"path":"https://shrektan.github.io/ymd/reference/beop.html","id":null,"dir":"Reference","previous_headings":"","what":"Find the Beginning or End of Period — beop","title":"Find the Beginning or End of Period — beop","text":"bop eop contains list functions, whose names consist two letters, first stands last, , next second stands year, quarter, month, week. example, eop$ty() means \"ending period year\" bop$lm() means \"beginning period last month\".","code":""},{"path":"https://shrektan.github.io/ymd/reference/beop.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Find the Beginning or End of Period — beop","text":"functions' signatures , one argument x, Date values can converted Date via ymd().","code":""},{"path":"https://shrektan.github.io/ymd/reference/beop.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Find the Beginning or End of Period — beop","text":"","code":"bop$ty(as.Date(\"2021-03-02\")) #> [1] \"2021-01-01\" ## supports 'YMD' formatted integer or string bop$ty(210302) #> [1] \"2021-01-01\" eop$tm(200201) #> [1] \"2020-02-29\""},{"path":"https://shrektan.github.io/ymd/reference/date_part.html","id":null,"dir":"Reference","previous_headings":"","what":"Fast Date Part Extracting — date_part","title":"Fast Date Part Extracting — date_part","text":"date helper functions provide similar functionalities like data.table lubridate package. implemented Rust Lang's standard library fast.","code":""},{"path":"https://shrektan.github.io/ymd/reference/date_part.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fast Date Part Extracting — date_part","text":"","code":"year(ref_date) month(ref_date) quarter(ref_date) isoweek(ref_date) isowday(ref_date) wday(ref_date) mday(ref_date) yday(ref_date)"},{"path":"https://shrektan.github.io/ymd/reference/date_part.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fast Date Part Extracting — date_part","text":"ref_date, Date vector. try convert input date via ymd(), input Date.","code":""},{"path":"https://shrektan.github.io/ymd/reference/date_part.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fast Date Part Extracting — date_part","text":"integer vector","code":""},{"path":"https://shrektan.github.io/ymd/reference/date_part.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Fast Date Part Extracting — date_part","text":"year, month, quarter: get year, month, quarter part yday: day year mday: day month wday: day week (Sunday 1) isoweek: ISO 8601 week isowday: day week (ISO 8601 weekday number, Monday 1)","code":""},{"path":"https://shrektan.github.io/ymd/reference/date_part.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"Fast Date Part Extracting — date_part","text":"ISO week day, https://en.wikipedia.org/wiki/ISO_week_date ISO 8601, https://en.wikipedia.org/wiki/ISO_8601","code":""},{"path":"https://shrektan.github.io/ymd/reference/date_part.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Fast Date Part Extracting — date_part","text":"","code":"year(210205) #> [1] 2021 month(210205) #> [1] 2 quarter(210205) #> [1] 1 yday(210205) #> [1] 36 mday(210205) #> [1] 5 wday(210117) #> [1] 1 isowday(210117) #> [1] 7 isoweek(210101) #> [1] 53"},{"path":"https://shrektan.github.io/ymd/reference/edate.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate the date before / after months — edate","title":"Calculate the date before / after months — edate","text":"Calculate date / months","code":""},{"path":"https://shrektan.github.io/ymd/reference/edate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate the date before / after months — edate","text":"","code":"edate(ref_date, months)"},{"path":"https://shrektan.github.io/ymd/reference/edate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate the date before / after months — edate","text":"ref_date Date vector months number months added ref_date","code":""},{"path":"https://shrektan.github.io/ymd/reference/edate.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Calculate the date before / after months — edate","text":"function name Excel function EDATE() . returns date indicated number months ref date.","code":""},{"path":"https://shrektan.github.io/ymd/reference/edate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate the date before / after months — edate","text":"","code":"edate(as.Date(\"2020-01-31\"), 1) #> [1] \"2020-02-29\" ## supports 'YMD' formatted integer or string edate(200131, 1) #> [1] \"2020-02-29\" edate(200229, -12) #> [1] \"2019-02-28\""},{"path":"https://shrektan.github.io/ymd/reference/ymd.html","id":null,"dir":"Reference","previous_headings":"","what":"Convert 'YMD' format integer or string to Date — ymd","title":"Convert 'YMD' format integer or string to Date — ymd","text":"Transform integer strings vectors 'YMD' format Date objects. intends support limited formats (separator one '.', ' ', '-' '/' separators). See possible formats examples.","code":""},{"path":"https://shrektan.github.io/ymd/reference/ymd.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Convert 'YMD' format integer or string to Date — ymd","text":"","code":"ymd(x, ...)"},{"path":"https://shrektan.github.io/ymd/reference/ymd.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Convert 'YMD' format integer or string to Date — ymd","text":"x integer string vector 'YMD' format. Double values without decimal part allowed. ... x. merged one vector x. convinient interactive use.","code":""},{"path":"https://shrektan.github.io/ymd/reference/ymd.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Convert 'YMD' format integer or string to Date — ymd","text":"Date object. parse fails certain input, value returned NA, silently.","code":""},{"path":"https://shrektan.github.io/ymd/reference/ymd.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Convert 'YMD' format integer or string to Date — ymd","text":"","code":"ymd(c(210326, 19981225)) #> [1] \"2021-03-26\" \"1998-12-25\" ymd(c(\"2020/1/8\", \"20 1 7\", \"1998.7.1\", \"1990-02-03\")) #> [1] \"2020-01-08\" \"2020-01-07\" \"1998-07-01\" \"1990-02-03\" ymd(210420, 180322) #> [1] \"2021-04-20\" \"2018-03-22\""},{"path":"https://shrektan.github.io/ymd/news/index.html","id":"ymd-012","dir":"Changelog","previous_headings":"","what":"ymd 0.1.2","title":"ymd 0.1.2","text":"Added rustc version reporting installation log per CRAN policy.","code":""},{"path":"https://shrektan.github.io/ymd/news/index.html","id":"ymd-011","dir":"Changelog","previous_headings":"","what":"ymd 0.1.1","title":"ymd 0.1.1","text":"CRAN release: 2024-08-17 Fix calling non-API entry points issue.","code":""},{"path":"https://shrektan.github.io/ymd/news/index.html","id":"ymd-010","dir":"Changelog","previous_headings":"","what":"ymd 0.1.0","title":"ymd 0.1.0","text":"CRAN release: 2023-10-09 ymd() now supports ... arguments, convenient interactive use, e.g., ymd(210101, 220201). Implement date part extracting functions, including year(), month(), quarter(), isoweek(), isowday(), wday(), mday(), yday(), Redirect Rust message R’s stderr stream. Fix issues violate CRAN policies, e.g., license issues rust offline dependencies.","code":""},{"path":"https://shrektan.github.io/ymd/news/index.html","id":"ymd-001","dir":"Changelog","previous_headings":"","what":"ymd 0.0.1","title":"ymd 0.0.1","text":"CRAN release: 2022-01-06 Added NEWS.md file track changes package. Implement ymd(), bop$xx(), eop$xx() edate() Rust.","code":""}]
Tan X (2024). ymd: Parse 'YMD' Format Number or String to Date. -R package version 0.1.1, https://github.com/shrektan/ymd, https://shrektan.github.io/ymd/. +R package version 0.1.2, https://github.com/shrektan/ymd, https://shrektan.github.io/ymd/.
@Manual{, title = {ymd: Parse 'YMD' Format Number or String to Date}, author = {Xianying Tan}, year = {2024}, - note = {R package version 0.1.1, https://github.com/shrektan/ymd}, + note = {R package version 0.1.2, https://github.com/shrektan/ymd}, url = {https://shrektan.github.io/ymd/}, }
NEWS.md
CRAN release: 2024-08-17