diff --git a/404.html b/404.html index bab56cf5..a4502ff7 100644 --- a/404.html +++ b/404.html @@ -37,7 +37,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/CODE_OF_CONDUCT.html b/CODE_OF_CONDUCT.html index 565cf481..2ed956f9 100644 --- a/CODE_OF_CONDUCT.html +++ b/CODE_OF_CONDUCT.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/CONTRIBUTING.html b/CONTRIBUTING.html index c418634a..d8b7f151 100644 --- a/CONTRIBUTING.html +++ b/CONTRIBUTING.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/ISSUE_TEMPLATE.html b/ISSUE_TEMPLATE.html index cb272c27..2fe58db6 100644 --- a/ISSUE_TEMPLATE.html +++ b/ISSUE_TEMPLATE.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/LICENSE.html b/LICENSE.html index 7f283fde..7b4c17a7 100644 --- a/LICENSE.html +++ b/LICENSE.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/SUPPORT.html b/SUPPORT.html index 8ea3882e..97d488fd 100644 --- a/SUPPORT.html +++ b/SUPPORT.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/articles/faq.html b/articles/faq.html index 8406c095..3bc41dbe 100644 --- a/articles/faq.html +++ b/articles/faq.html @@ -39,7 +39,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/articles/implicit-na.html b/articles/implicit-na.html index 8d828e58..b9d51638 100644 --- a/articles/implicit-na.html +++ b/articles/implicit-na.html @@ -39,7 +39,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/articles/index.html b/articles/index.html index 39578e24..de357a44 100644 --- a/articles/index.html +++ b/articles/index.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/articles/intro-tsibble.html b/articles/intro-tsibble.html index 5af1e8f0..ec246f26 100644 --- a/articles/intro-tsibble.html +++ b/articles/intro-tsibble.html @@ -39,7 +39,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/authors.html b/authors.html index a1e63be3..3795c10d 100644 --- a/authors.html +++ b/authors.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/index.html b/index.html index 1b921217..ffeb23c9 100644 --- a/index.html +++ b/index.html @@ -39,7 +39,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/news/index.html b/news/index.html index 867a1b7c..0f3a6cec 100644 --- a/news/index.html +++ b/news/index.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 @@ -60,6 +60,10 @@ Source: NEWS.md + +tsibble 1.1.5 +Fix difference() giving extra NA values when the time series is shorter than the lag length. (#310, @mitchelloharawild) + tsibble 1.1.4CRAN release: 2024-01-29 Fixed vec_ptype2() for yearweek and yearquarter for non-default week start. (#299) diff --git a/pkgdown.yml b/pkgdown.yml index ae03bd85..32ff2014 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -5,7 +5,7 @@ articles: faq: faq.html implicit-na: implicit-na.html intro-tsibble: intro-tsibble.html -last_built: 2024-06-26T08:32Z +last_built: 2024-06-26T08:50Z urls: reference: https://tsibble.tidyverts.org/reference article: https://tsibble.tidyverts.org/articles diff --git a/reference/as-tibble.html b/reference/as-tibble.html index 9f041fb5..381b1cac 100644 --- a/reference/as-tibble.html +++ b/reference/as-tibble.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/as-tsibble.html b/reference/as-tsibble.html index dee88bb6..1c66531f 100644 --- a/reference/as-tsibble.html +++ b/reference/as-tsibble.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/as.ts.tbl_ts.html b/reference/as.ts.tbl_ts.html index 4aeaa506..3227d731 100644 --- a/reference/as.ts.tbl_ts.html +++ b/reference/as.ts.tbl_ts.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/build_tsibble.html b/reference/build_tsibble.html index 59f0d5ee..957b5f19 100644 --- a/reference/build_tsibble.html +++ b/reference/build_tsibble.html @@ -20,7 +20,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/build_tsibble_meta.html b/reference/build_tsibble_meta.html index 064ff9fb..058b4e49 100644 --- a/reference/build_tsibble_meta.html +++ b/reference/build_tsibble_meta.html @@ -20,7 +20,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/count_gaps.html b/reference/count_gaps.html index f5083c24..b7db8ac8 100644 --- a/reference/count_gaps.html +++ b/reference/count_gaps.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/default_time_units.html b/reference/default_time_units.html index 9fcc201b..8a978179 100644 --- a/reference/default_time_units.html +++ b/reference/default_time_units.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/difference.html b/reference/difference.html index c3d7dbc1..99c660f5 100644 --- a/reference/difference.html +++ b/reference/difference.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/duplicates.html b/reference/duplicates.html index 658140f9..7139a908 100644 --- a/reference/duplicates.html +++ b/reference/duplicates.html @@ -26,7 +26,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/fill_gaps.html b/reference/fill_gaps.html index 2f75b0d4..3995d481 100644 --- a/reference/fill_gaps.html +++ b/reference/fill_gaps.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/filter_index.html b/reference/filter_index.html index bbe5cd7e..16fd90fd 100644 --- a/reference/filter_index.html +++ b/reference/filter_index.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/group_by_key.html b/reference/group_by_key.html index 4d07a589..f68058fe 100644 --- a/reference/group_by_key.html +++ b/reference/group_by_key.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/guess_frequency.html b/reference/guess_frequency.html index a2fdac23..99f1fc89 100644 --- a/reference/guess_frequency.html +++ b/reference/guess_frequency.html @@ -18,7 +18,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/has_gaps.html b/reference/has_gaps.html index a2fb901c..d3bb30d9 100644 --- a/reference/has_gaps.html +++ b/reference/has_gaps.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/holiday_aus.html b/reference/holiday_aus.html index 124543a7..e78098de 100644 --- a/reference/holiday_aus.html +++ b/reference/holiday_aus.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/index-by.html b/reference/index-by.html index 99c5b382..06b6ae21 100644 --- a/reference/index-by.html +++ b/reference/index-by.html @@ -26,7 +26,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/index-rd.html b/reference/index-rd.html index 0e0ad090..5f6d2414 100644 --- a/reference/index-rd.html +++ b/reference/index-rd.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/index.html b/reference/index.html index 8536c19c..70432bb8 100644 --- a/reference/index.html +++ b/reference/index.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/index_valid.html b/reference/index_valid.html index 00d3fe3c..a4806e24 100644 --- a/reference/index_valid.html +++ b/reference/index_valid.html @@ -18,7 +18,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/interval-pull.html b/reference/interval-pull.html index 1b05436c..526a867b 100644 --- a/reference/interval-pull.html +++ b/reference/interval-pull.html @@ -20,7 +20,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/is-tsibble.html b/reference/is-tsibble.html index b6b03fef..7d460900 100644 --- a/reference/is-tsibble.html +++ b/reference/is-tsibble.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/key-data.html b/reference/key-data.html index 072e97c9..75789d76 100644 --- a/reference/key-data.html +++ b/reference/key-data.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/key.html b/reference/key.html index 3a75d2f2..4d26bc66 100644 --- a/reference/key.html +++ b/reference/key.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/key_drop_default.html b/reference/key_drop_default.html index f72c1d8b..46cb98d7 100644 --- a/reference/key_drop_default.html +++ b/reference/key_drop_default.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/measured-vars.html b/reference/measured-vars.html index 6f1bc30d..eeda34e7 100644 --- a/reference/measured-vars.html +++ b/reference/measured-vars.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/new-data.html b/reference/new-data.html index a3b2dea8..c8cda362 100644 --- a/reference/new-data.html +++ b/reference/new-data.html @@ -22,7 +22,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/new-interval.html b/reference/new-interval.html index d06ab811..d6c17ee2 100644 --- a/reference/new-interval.html +++ b/reference/new-interval.html @@ -28,7 +28,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/new_tsibble.html b/reference/new_tsibble.html index 23b08ee4..2bc9e4d4 100644 --- a/reference/new_tsibble.html +++ b/reference/new_tsibble.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/pedestrian.html b/reference/pedestrian.html index 9dc89715..659ff1e2 100644 --- a/reference/pedestrian.html +++ b/reference/pedestrian.html @@ -18,7 +18,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/reexports.html b/reference/reexports.html index cd345678..d96d9b1e 100644 --- a/reference/reexports.html +++ b/reference/reexports.html @@ -46,7 +46,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/regular.html b/reference/regular.html index a296b058..3d29e67c 100644 --- a/reference/regular.html +++ b/reference/regular.html @@ -28,7 +28,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/scan_gaps.html b/reference/scan_gaps.html index 3147657a..1207af82 100644 --- a/reference/scan_gaps.html +++ b/reference/scan_gaps.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/slide_tsibble.html b/reference/slide_tsibble.html index 618da191..d262c6c1 100644 --- a/reference/slide_tsibble.html +++ b/reference/slide_tsibble.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/stretch_tsibble.html b/reference/stretch_tsibble.html index ebc20b0b..99b6147c 100644 --- a/reference/stretch_tsibble.html +++ b/reference/stretch_tsibble.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/tile_tsibble.html b/reference/tile_tsibble.html index fde39f26..99a91888 100644 --- a/reference/tile_tsibble.html +++ b/reference/tile_tsibble.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/time_in.html b/reference/time_in.html index 5c7e60cb..1f79dd71 100644 --- a/reference/time_in.html +++ b/reference/time_in.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/tourism.html b/reference/tourism.html index 1a315034..11d6e1b9 100644 --- a/reference/tourism.html +++ b/reference/tourism.html @@ -18,7 +18,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/tsibble-package.html b/reference/tsibble-package.html index c9acb969..ff19edee 100644 --- a/reference/tsibble-package.html +++ b/reference/tsibble-package.html @@ -22,7 +22,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/tsibble-scales.html b/reference/tsibble-scales.html index 98f9f475..ea9857cf 100644 --- a/reference/tsibble-scales.html +++ b/reference/tsibble-scales.html @@ -18,7 +18,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/tsibble-tidyverse.html b/reference/tsibble-tidyverse.html index ca8c75b4..c2d51f60 100644 --- a/reference/tsibble-tidyverse.html +++ b/reference/tsibble-tidyverse.html @@ -46,7 +46,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/tsibble-vctrs.html b/reference/tsibble-vctrs.html index 16a30064..d43ddd0c 100644 --- a/reference/tsibble-vctrs.html +++ b/reference/tsibble-vctrs.html @@ -18,7 +18,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/tsibble.html b/reference/tsibble.html index c07c0890..bb8d86be 100644 --- a/reference/tsibble.html +++ b/reference/tsibble.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/unnest_tsibble.html b/reference/unnest_tsibble.html index 66f39bee..2e9a9822 100644 --- a/reference/unnest_tsibble.html +++ b/reference/unnest_tsibble.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/update_tsibble.html b/reference/update_tsibble.html index 779c1be0..54f31ab3 100644 --- a/reference/update_tsibble.html +++ b/reference/update_tsibble.html @@ -16,7 +16,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/year-month.html b/reference/year-month.html index fa1daaca..91d1da19 100644 --- a/reference/year-month.html +++ b/reference/year-month.html @@ -18,7 +18,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/year-quarter.html b/reference/year-quarter.html index 45732abd..2db5cf8d 100644 --- a/reference/year-quarter.html +++ b/reference/year-quarter.html @@ -18,7 +18,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/reference/year-week.html b/reference/year-week.html index e8cbd685..9b209558 100644 --- a/reference/year-week.html +++ b/reference/year-week.html @@ -18,7 +18,7 @@ tsibble - 1.1.4 + 1.1.5 diff --git a/search.json b/search.json index f9a47c4d..3cc41c43 100644 --- a/search.json +++ b/search.json @@ -1 +1 @@ -[{"path":"https://tsibble.tidyverts.org/CODE_OF_CONDUCT.html","id":null,"dir":"","previous_headings":"","what":"Contributor Code of Conduct","title":"Contributor Code of Conduct","text":"contributors maintainers project, pledge respect people contribute reporting issues, posting feature requests, updating documentation, submitting pull requests patches, activities. committed making participation project harassment-free experience everyone, regardless level experience, gender, gender identity expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion. Examples unacceptable behavior participants include use sexual language imagery, derogatory comments personal attacks, trolling, public private harassment, insults, unprofessional conduct. Project maintainers right responsibility remove, edit, reject comments, commits, code, wiki edits, issues, contributions aligned Code Conduct. Project maintainers follow Code Conduct may removed project team. Instances abusive, harassing, otherwise unacceptable behavior may reported opening issue contacting one project maintainers. Code Conduct adapted Contributor Covenant (http://contributor-covenant.org), version 1.0.0, available http://contributor-covenant.org/version/1/0/0/","code":""},{"path":"https://tsibble.tidyverts.org/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contributing to tsibble","title":"Contributing to tsibble","text":"outlines propose change tsibble. detailed info contributing , tidyverse packages, please see development contributing guide.","code":""},{"path":"https://tsibble.tidyverts.org/CONTRIBUTING.html","id":"fixing-typos","dir":"","previous_headings":"","what":"Fixing typos","title":"Contributing to tsibble","text":"Small typos grammatical errors documentation may edited directly using GitHub web interface, long changes made source file. YES: edit roxygen comment .R file R/. : edit .Rd file man/.","code":""},{"path":"https://tsibble.tidyverts.org/CONTRIBUTING.html","id":"prerequisites","dir":"","previous_headings":"","what":"Prerequisites","title":"Contributing to tsibble","text":"make substantial pull request, always file issue make sure someone team agrees ’s problem. ’ve found bug, create associated issue illustrate bug minimal reprex.","code":""},{"path":"https://tsibble.tidyverts.org/CONTRIBUTING.html","id":"pull-request-process","dir":"","previous_headings":"","what":"Pull request process","title":"Contributing to tsibble","text":"recommend create Git branch pull request (PR). Look Travis AppVeyor build status making changes. README contain badges continuous integration services used package. New code follow tidyverse style guide. can use styler package apply styles, please don’t restyle code nothing PR. use roxygen2, Markdown syntax, documentation. use testthat. Contributions test cases included easier accept. user-facing changes, add bullet top NEWS.md current development version header describing changes made followed GitHub username, links relevant issue(s)/PR(s).","code":""},{"path":"https://tsibble.tidyverts.org/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contributing to tsibble","text":"Please note project released Contributor Code Conduct. participating project agree abide terms.","code":""},{"path":[]},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"GNU General Public License","title":"GNU General Public License","text":"Version 3, 29 June 2007Copyright © 2007 Free Software Foundation, Inc. Everyone permitted copy distribute verbatim copies license document, changing allowed.","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"preamble","dir":"","previous_headings":"","what":"Preamble","title":"GNU General Public License","text":"GNU General Public License free, copyleft license software kinds works. licenses software practical works designed take away freedom share change works. contrast, GNU General Public License intended guarantee freedom share change versions program–make sure remains free software users. , Free Software Foundation, use GNU General Public License software; applies also work released way authors. can apply programs, . speak free software, referring freedom, price. General Public Licenses designed make sure freedom distribute copies free software (charge wish), receive source code can get want , can change software use pieces new free programs, know can things. protect rights, need prevent others denying rights asking surrender rights. Therefore, certain responsibilities distribute copies software, modify : responsibilities respect freedom others. example, distribute copies program, whether gratis fee, must pass recipients freedoms received. must make sure , , receive can get source code. must show terms know rights. Developers use GNU GPL protect rights two steps: (1) assert copyright software, (2) offer License giving legal permission copy, distribute /modify . developers’ authors’ protection, GPL clearly explains warranty free software. users’ authors’ sake, GPL requires modified versions marked changed, problems attributed erroneously authors previous versions. devices designed deny users access install run modified versions software inside , although manufacturer can . fundamentally incompatible aim protecting users’ freedom change software. systematic pattern abuse occurs area products individuals use, precisely unacceptable. Therefore, designed version GPL prohibit practice products. problems arise substantially domains, stand ready extend provision domains future versions GPL, needed protect freedom users. Finally, every program threatened constantly software patents. States allow patents restrict development use software general-purpose computers, , wish avoid special danger patents applied free program make effectively proprietary. prevent , GPL assures patents used render program non-free. precise terms conditions copying, distribution modification follow.","code":""},{"path":[]},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_0-definitions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"0. Definitions","title":"GNU General Public License","text":"“License” refers version 3 GNU General Public License. “Copyright” also means copyright-like laws apply kinds works, semiconductor masks. “Program” refers copyrightable work licensed License. licensee addressed “”. “Licensees” “recipients” may individuals organizations. “modify” work means copy adapt part work fashion requiring copyright permission, making exact copy. resulting work called “modified version” earlier work work “based ” earlier work. “covered work” means either unmodified Program work based Program. “propagate” work means anything , without permission, make directly secondarily liable infringement applicable copyright law, except executing computer modifying private copy. Propagation includes copying, distribution (without modification), making available public, countries activities well. “convey” work means kind propagation enables parties make receive copies. Mere interaction user computer network, transfer copy, conveying. interactive user interface displays “Appropriate Legal Notices” extent includes convenient prominently visible feature (1) displays appropriate copyright notice, (2) tells user warranty work (except extent warranties provided), licensees may convey work License, view copy License. interface presents list user commands options, menu, prominent item list meets criterion.","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_1-source-code","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"1. Source Code","title":"GNU General Public License","text":"“source code” work means preferred form work making modifications . “Object code” means non-source form work. “Standard Interface” means interface either official standard defined recognized standards body, , case interfaces specified particular programming language, one widely used among developers working language. “System Libraries” executable work include anything, work whole, () included normal form packaging Major Component, part Major Component, (b) serves enable use work Major Component, implement Standard Interface implementation available public source code form. “Major Component”, context, means major essential component (kernel, window system, ) specific operating system () executable work runs, compiler used produce work, object code interpreter used run . “Corresponding Source” work object code form means source code needed generate, install, (executable work) run object code modify work, including scripts control activities. However, include work’s System Libraries, general-purpose tools generally available free programs used unmodified performing activities part work. example, Corresponding Source includes interface definition files associated source files work, source code shared libraries dynamically linked subprograms work specifically designed require, intimate data communication control flow subprograms parts work. Corresponding Source need include anything users can regenerate automatically parts Corresponding Source. Corresponding Source work source code form work.","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_2-basic-permissions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"2. Basic Permissions","title":"GNU General Public License","text":"rights granted License granted term copyright Program, irrevocable provided stated conditions met. License explicitly affirms unlimited permission run unmodified Program. output running covered work covered License output, given content, constitutes covered work. License acknowledges rights fair use equivalent, provided copyright law. may make, run propagate covered works convey, without conditions long license otherwise remains force. may convey covered works others sole purpose make modifications exclusively , provide facilities running works, provided comply terms License conveying material control copyright. thus making running covered works must exclusively behalf, direction control, terms prohibit making copies copyrighted material outside relationship . Conveying circumstances permitted solely conditions stated . Sublicensing allowed; section 10 makes unnecessary.","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_3-protecting-users-legal-rights-from-anti-circumvention-law","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"3. Protecting Users’ Legal Rights From Anti-Circumvention Law","title":"GNU General Public License","text":"covered work shall deemed part effective technological measure applicable law fulfilling obligations article 11 WIPO copyright treaty adopted 20 December 1996, similar laws prohibiting restricting circumvention measures. convey covered work, waive legal power forbid circumvention technological measures extent circumvention effected exercising rights License respect covered work, disclaim intention limit operation modification work means enforcing, work’s users, third parties’ legal rights forbid circumvention technological measures.","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_4-conveying-verbatim-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"4. Conveying Verbatim Copies","title":"GNU General Public License","text":"may convey verbatim copies Program’s source code receive , medium, provided conspicuously appropriately publish copy appropriate copyright notice; keep intact notices stating License non-permissive terms added accord section 7 apply code; keep intact notices absence warranty; give recipients copy License along Program. may charge price price copy convey, may offer support warranty protection fee.","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_5-conveying-modified-source-versions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"5. Conveying Modified Source Versions","title":"GNU General Public License","text":"may convey work based Program, modifications produce Program, form source code terms section 4, provided also meet conditions: ) work must carry prominent notices stating modified , giving relevant date. b) work must carry prominent notices stating released License conditions added section 7. requirement modifies requirement section 4 “keep intact notices”. c) must license entire work, whole, License anyone comes possession copy. License therefore apply, along applicable section 7 additional terms, whole work, parts, regardless packaged. License gives permission license work way, invalidate permission separately received . d) work interactive user interfaces, must display Appropriate Legal Notices; however, Program interactive interfaces display Appropriate Legal Notices, work need make . compilation covered work separate independent works, nature extensions covered work, combined form larger program, volume storage distribution medium, called “aggregate” compilation resulting copyright used limit access legal rights compilation’s users beyond individual works permit. Inclusion covered work aggregate cause License apply parts aggregate.","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_6-conveying-non-source-forms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"6. Conveying Non-Source Forms","title":"GNU General Public License","text":"may convey covered work object code form terms sections 4 5, provided also convey machine-readable Corresponding Source terms License, one ways: ) Convey object code , embodied , physical product (including physical distribution medium), accompanied Corresponding Source fixed durable physical medium customarily used software interchange. b) Convey object code , embodied , physical product (including physical distribution medium), accompanied written offer, valid least three years valid long offer spare parts customer support product model, give anyone possesses object code either (1) copy Corresponding Source software product covered License, durable physical medium customarily used software interchange, price reasonable cost physically performing conveying source, (2) access copy Corresponding Source network server charge. c) Convey individual copies object code copy written offer provide Corresponding Source. alternative allowed occasionally noncommercially, received object code offer, accord subsection 6b. d) Convey object code offering access designated place (gratis charge), offer equivalent access Corresponding Source way place charge. need require recipients copy Corresponding Source along object code. place copy object code network server, Corresponding Source may different server (operated third party) supports equivalent copying facilities, provided maintain clear directions next object code saying find Corresponding Source. Regardless server hosts Corresponding Source, remain obligated ensure available long needed satisfy requirements. e) Convey object code using peer--peer transmission, provided inform peers object code Corresponding Source work offered general public charge subsection 6d. separable portion object code, whose source code excluded Corresponding Source System Library, need included conveying object code work. “User Product” either (1) “consumer product”, means tangible personal property normally used personal, family, household purposes, (2) anything designed sold incorporation dwelling. determining whether product consumer product, doubtful cases shall resolved favor coverage. particular product received particular user, “normally used” refers typical common use class product, regardless status particular user way particular user actually uses, expects expected use, product. product consumer product regardless whether product substantial commercial, industrial non-consumer uses, unless uses represent significant mode use product. “Installation Information” User Product means methods, procedures, authorization keys, information required install execute modified versions covered work User Product modified version Corresponding Source. information must suffice ensure continued functioning modified object code case prevented interfered solely modification made. convey object code work section , , specifically use , User Product, conveying occurs part transaction right possession use User Product transferred recipient perpetuity fixed term (regardless transaction characterized), Corresponding Source conveyed section must accompanied Installation Information. requirement apply neither third party retains ability install modified object code User Product (example, work installed ROM). requirement provide Installation Information include requirement continue provide support service, warranty, updates work modified installed recipient, User Product modified installed. Access network may denied modification materially adversely affects operation network violates rules protocols communication across network. Corresponding Source conveyed, Installation Information provided, accord section must format publicly documented (implementation available public source code form), must require special password key unpacking, reading copying.","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_7-additional-terms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"7. Additional Terms","title":"GNU General Public License","text":"“Additional permissions” terms supplement terms License making exceptions one conditions. Additional permissions applicable entire Program shall treated though included License, extent valid applicable law. additional permissions apply part Program, part may used separately permissions, entire Program remains governed License without regard additional permissions. convey copy covered work, may option remove additional permissions copy, part . (Additional permissions may written require removal certain cases modify work.) may place additional permissions material, added covered work, can give appropriate copyright permission. Notwithstanding provision License, material add covered work, may (authorized copyright holders material) supplement terms License terms: ) Disclaiming warranty limiting liability differently terms sections 15 16 License; b) Requiring preservation specified reasonable legal notices author attributions material Appropriate Legal Notices displayed works containing ; c) Prohibiting misrepresentation origin material, requiring modified versions material marked reasonable ways different original version; d) Limiting use publicity purposes names licensors authors material; e) Declining grant rights trademark law use trade names, trademarks, service marks; f) Requiring indemnification licensors authors material anyone conveys material (modified versions ) contractual assumptions liability recipient, liability contractual assumptions directly impose licensors authors. non-permissive additional terms considered “restrictions” within meaning section 10. Program received , part , contains notice stating governed License along term restriction, may remove term. license document contains restriction permits relicensing conveying License, may add covered work material governed terms license document, provided restriction survive relicensing conveying. add terms covered work accord section, must place, relevant source files, statement additional terms apply files, notice indicating find applicable terms. Additional terms, permissive non-permissive, may stated form separately written license, stated exceptions; requirements apply either way.","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_8-termination","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"8. Termination","title":"GNU General Public License","text":"may propagate modify covered work except expressly provided License. attempt otherwise propagate modify void, automatically terminate rights License (including patent licenses granted third paragraph section 11). However, cease violation License, license particular copyright holder reinstated () provisionally, unless copyright holder explicitly finally terminates license, (b) permanently, copyright holder fails notify violation reasonable means prior 60 days cessation. Moreover, license particular copyright holder reinstated permanently copyright holder notifies violation reasonable means, first time received notice violation License (work) copyright holder, cure violation prior 30 days receipt notice. Termination rights section terminate licenses parties received copies rights License. rights terminated permanently reinstated, qualify receive new licenses material section 10.","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_9-acceptance-not-required-for-having-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"9. Acceptance Not Required for Having Copies","title":"GNU General Public License","text":"required accept License order receive run copy Program. Ancillary propagation covered work occurring solely consequence using peer--peer transmission receive copy likewise require acceptance. However, nothing License grants permission propagate modify covered work. actions infringe copyright accept License. Therefore, modifying propagating covered work, indicate acceptance License .","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_10-automatic-licensing-of-downstream-recipients","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"10. Automatic Licensing of Downstream Recipients","title":"GNU General Public License","text":"time convey covered work, recipient automatically receives license original licensors, run, modify propagate work, subject License. responsible enforcing compliance third parties License. “entity transaction” transaction transferring control organization, substantially assets one, subdividing organization, merging organizations. propagation covered work results entity transaction, party transaction receives copy work also receives whatever licenses work party’s predecessor interest give previous paragraph, plus right possession Corresponding Source work predecessor interest, predecessor can get reasonable efforts. may impose restrictions exercise rights granted affirmed License. example, may impose license fee, royalty, charge exercise rights granted License, may initiate litigation (including cross-claim counterclaim lawsuit) alleging patent claim infringed making, using, selling, offering sale, importing Program portion .","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_11-patents","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"11. Patents","title":"GNU General Public License","text":"“contributor” copyright holder authorizes use License Program work Program based. work thus licensed called contributor’s “contributor version”. contributor’s “essential patent claims” patent claims owned controlled contributor, whether already acquired hereafter acquired, infringed manner, permitted License, making, using, selling contributor version, include claims infringed consequence modification contributor version. purposes definition, “control” includes right grant patent sublicenses manner consistent requirements License. contributor grants non-exclusive, worldwide, royalty-free patent license contributor’s essential patent claims, make, use, sell, offer sale, import otherwise run, modify propagate contents contributor version. following three paragraphs, “patent license” express agreement commitment, however denominated, enforce patent (express permission practice patent covenant sue patent infringement). “grant” patent license party means make agreement commitment enforce patent party. convey covered work, knowingly relying patent license, Corresponding Source work available anyone copy, free charge terms License, publicly available network server readily accessible means, must either (1) cause Corresponding Source available, (2) arrange deprive benefit patent license particular work, (3) arrange, manner consistent requirements License, extend patent license downstream recipients. “Knowingly relying” means actual knowledge , patent license, conveying covered work country, recipient’s use covered work country, infringe one identifiable patents country reason believe valid. , pursuant connection single transaction arrangement, convey, propagate procuring conveyance , covered work, grant patent license parties receiving covered work authorizing use, propagate, modify convey specific copy covered work, patent license grant automatically extended recipients covered work works based . patent license “discriminatory” include within scope coverage, prohibits exercise , conditioned non-exercise one rights specifically granted License. may convey covered work party arrangement third party business distributing software, make payment third party based extent activity conveying work, third party grants, parties receive covered work , discriminatory patent license () connection copies covered work conveyed (copies made copies), (b) primarily connection specific products compilations contain covered work, unless entered arrangement, patent license granted, prior 28 March 2007. Nothing License shall construed excluding limiting implied license defenses infringement may otherwise available applicable patent law.","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_12-no-surrender-of-others-freedom","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"12. No Surrender of Others’ Freedom","title":"GNU General Public License","text":"conditions imposed (whether court order, agreement otherwise) contradict conditions License, excuse conditions License. convey covered work satisfy simultaneously obligations License pertinent obligations, consequence may convey . example, agree terms obligate collect royalty conveying convey Program, way satisfy terms License refrain entirely conveying Program.","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_13-use-with-the-gnu-affero-general-public-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"13. Use with the GNU Affero General Public License","title":"GNU General Public License","text":"Notwithstanding provision License, permission link combine covered work work licensed version 3 GNU Affero General Public License single combined work, convey resulting work. terms License continue apply part covered work, special requirements GNU Affero General Public License, section 13, concerning interaction network apply combination .","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_14-revised-versions-of-this-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"14. Revised Versions of this License","title":"GNU General Public License","text":"Free Software Foundation may publish revised /new versions GNU General Public License time time. new versions similar spirit present version, may differ detail address new problems concerns. version given distinguishing version number. Program specifies certain numbered version GNU General Public License “later version” applies , option following terms conditions either numbered version later version published Free Software Foundation. Program specify version number GNU General Public License, may choose version ever published Free Software Foundation. Program specifies proxy can decide future versions GNU General Public License can used, proxy’s public statement acceptance version permanently authorizes choose version Program. Later license versions may give additional different permissions. However, additional obligations imposed author copyright holder result choosing follow later version.","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_15-disclaimer-of-warranty","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"15. Disclaimer of Warranty","title":"GNU General Public License","text":"WARRANTY PROGRAM, EXTENT PERMITTED APPLICABLE LAW. EXCEPT OTHERWISE STATED WRITING COPYRIGHT HOLDERS /PARTIES PROVIDE PROGRAM “” WITHOUT WARRANTY KIND, EITHER EXPRESSED IMPLIED, INCLUDING, LIMITED , IMPLIED WARRANTIES MERCHANTABILITY FITNESS PARTICULAR PURPOSE. ENTIRE RISK QUALITY PERFORMANCE PROGRAM . PROGRAM PROVE DEFECTIVE, ASSUME COST NECESSARY SERVICING, REPAIR CORRECTION.","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_16-limitation-of-liability","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"16. Limitation of Liability","title":"GNU General Public License","text":"EVENT UNLESS REQUIRED APPLICABLE LAW AGREED WRITING COPYRIGHT HOLDER, PARTY MODIFIES /CONVEYS PROGRAM PERMITTED , LIABLE DAMAGES, INCLUDING GENERAL, SPECIAL, INCIDENTAL CONSEQUENTIAL DAMAGES ARISING USE INABILITY USE PROGRAM (INCLUDING LIMITED LOSS DATA DATA RENDERED INACCURATE LOSSES SUSTAINED THIRD PARTIES FAILURE PROGRAM OPERATE PROGRAMS), EVEN HOLDER PARTY ADVISED POSSIBILITY DAMAGES.","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"id_17-interpretation-of-sections-15-and-16","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"17. Interpretation of Sections 15 and 16","title":"GNU General Public License","text":"disclaimer warranty limitation liability provided given local legal effect according terms, reviewing courts shall apply local law closely approximates absolute waiver civil liability connection Program, unless warranty assumption liability accompanies copy Program return fee. END TERMS CONDITIONS","code":""},{"path":"https://tsibble.tidyverts.org/LICENSE.html","id":"how-to-apply-these-terms-to-your-new-programs","dir":"","previous_headings":"","what":"How to Apply These Terms to Your New Programs","title":"GNU General Public License","text":"develop new program, want greatest possible use public, best way achieve make free software everyone can redistribute change terms. , attach following notices program. safest attach start source file effectively state exclusion warranty; file least “copyright” line pointer full notice found. Also add information contact electronic paper mail. program terminal interaction, make output short notice like starts interactive mode: hypothetical commands show w show c show appropriate parts General Public License. course, program’s commands might different; GUI interface, use “box”. also get employer (work programmer) school, , sign “copyright disclaimer” program, necessary. information , apply follow GNU GPL, see . GNU General Public License permit incorporating program proprietary programs. program subroutine library, may consider useful permit linking proprietary applications library. want , use GNU Lesser General Public License instead License. first, please read .","code":" Copyright (C) 2018 Earo Wang This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . tsibble Copyright (C) 2018 Earo Wang This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'. This is free software, and you are welcome to redistribute it under certain conditions; type 'show c' for details."},{"path":"https://tsibble.tidyverts.org/SUPPORT.html","id":null,"dir":"","previous_headings":"","what":"Getting help with tsibble","title":"Getting help with tsibble","text":"Thanks using tsibble. filing issue, places explore pieces put together make process smooth possible. Start making minimal reproducible example using reprex package. haven’t heard used reprex , ’re treat! Seriously, reprex make R-question-asking endeavors easier (pretty insane ROI five ten minutes ’ll take learn ’s ). additional reprex pointers, check Get help! section tidyverse site. Armed reprex, next step figure ask. ’s question: start community.rstudio.com, /StackOverflow. people answer questions. ’s bug: ’re right place, file issue. ’re sure: let community help figure ! problem bug feature request, can easily return report . opening new issue, sure search issues pull requests make sure bug hasn’t reported /already fixed development version. default, search pre-populated :issue :open. can edit qualifiers (e.g. :pr, :closed) needed. example, ’d simply remove :open search issues repo, open closed. right place, need file issue, please review “File issues” paragraph tidyverse contributing guidelines. Thanks help!","code":""},{"path":"https://tsibble.tidyverts.org/articles/intro-tsibble.html","id":"contextual-semantics-index-and-key","dir":"Articles","previous_headings":"","what":"Contextual semantics: index and key","title":"Introduction to tsibble","text":"tsibble() creates tsibble object, as_tsibble() S3 method coerce objects tsibble. object vector/matrix underlies, ts mts, can automated tsibble using as_tsibble() without specification. tibble data frame, as_tsibble() requires little setup order declare index key variables. weather data included package nycflights13 contains hourly meteorological records (temperature, humid precipitation) year 2013 three stations (.e. JFK, LGA EWR) New York City. Since time_hour column involving timestamps, as_tsibble() defaults index variable; alternatively, index can specified argument index = time_hour disable verbose message. Except index, tsibble requires “key”, defines subjects individuals measured time. example, origin variable identifier, passed argument key as_tsibble(). observation uniquely identified index key valid tsibble. Others—temp, humid precip—referred measured variables. creating tsibble, key sorted first, followed arranging time past recent. interval automatically obtained based corresponding time representation: integer/numeric/ordered: either “unit” “year” (Y) yearquarter/yearqtr: “quarter” (Q) yearmonth/yearmon: “month” (M) yearweek: “week” (W) Date: “day” (D) difftime: “week” (W), “day” (D), “hour” (h), “minute” (m), “second” (s) POSIXct/hms: “hour” (h), “minute” (m), “second” (s), “millisecond” (us), “microsecond” (ms) nanotime: “nanosecond” (ns) , tsibble monthly intervals expects yearmonth/yearmon class index column. Neither Date POSIXct gives monthly tsibble. print display data-centric contextually informative, data dimension, time interval, number time-based units. displays weather_tsbl one-hour interval ([1h]) origin [3] key along three time series table.","code":"library(dplyr) library(lubridate) library(tsibble) weather <- nycflights13::weather %>% select(origin, time_hour, temp, humid, precip) weather #> # A tibble: 26,115 × 5 #> origin time_hour temp humid precip #> #> 1 EWR 2013-01-01 01:00:00 39.0 59.4 0 #> 2 EWR 2013-01-01 02:00:00 39.0 61.6 0 #> 3 EWR 2013-01-01 03:00:00 39.0 64.4 0 #> 4 EWR 2013-01-01 04:00:00 39.9 62.2 0 #> 5 EWR 2013-01-01 05:00:00 39.0 64.4 0 #> # ℹ 26,110 more rows weather_tsbl <- as_tsibble(weather, key = origin) #> Using `time_hour` as index variable. weather_tsbl #> # A tsibble: 26,115 x 5 [1h] #> # Key: origin [3] #> origin time_hour temp humid precip #> #> 1 EWR 2013-01-01 01:00:00 39.0 59.4 0 #> 2 EWR 2013-01-01 02:00:00 39.0 61.6 0 #> 3 EWR 2013-01-01 03:00:00 39.0 64.4 0 #> 4 EWR 2013-01-01 04:00:00 39.9 62.2 0 #> 5 EWR 2013-01-01 05:00:00 39.0 64.4 0 #> # ℹ 26,110 more rows"},{"path":"https://tsibble.tidyverts.org/articles/intro-tsibble.html","id":"data-pipeline","dir":"Articles","previous_headings":"","what":"Data pipeline","title":"Introduction to tsibble","text":"tidy data representation naturally supports thinking operations data building blocks, forming part “data pipeline” time-based context. Users familiar tidyverse find easier perform common temporal analysis tasks. example, index_by() counterpart group_by() temporal context, groups time index. index_by() + summarise() used summarise daily highs lows station. result, index updated date one-day interval index time_hour; two new variables created computed daily maximum minimum temperatures.","code":"weather_tsbl %>% group_by_key() %>% index_by(date = ~ as_date(.)) %>% summarise( temp_high = max(temp, na.rm = TRUE), temp_low = min(temp, na.rm = TRUE) ) #> # A tsibble: 1,092 x 4 [1D] #> # Key: origin [3] #> origin date temp_high temp_low #> #> 1 EWR 2013-01-01 41 28.0 #> 2 EWR 2013-01-02 34.0 24.1 #> 3 EWR 2013-01-03 34.0 26.1 #> 4 EWR 2013-01-04 39.9 28.9 #> 5 EWR 2013-01-05 44.1 32 #> # ℹ 1,087 more rows"},{"path":"https://tsibble.tidyverts.org/articles/intro-tsibble.html","id":"irregular-time-interval","dir":"Articles","previous_headings":"","what":"Irregular time interval","title":"Introduction to tsibble","text":"Note tsibble handles regularly-spaced temporal data well, seconds years based time representation (see ?tsibble). option regular, default, set TRUE as_tsibble(). Specify regular FALSE create tsibble data collected irregular time interval. shows scheduled date time flights New York: key contains columns carrier flight identify observational units time, passenger’s point view. regular = FALSE, turns irregularly-spaced tsibble, [!] highlights irregularity. regularise irregular tsibble, can achieved index_by() + summarise().","code":"flights <- nycflights13::flights %>% mutate(sched_dep_datetime = make_datetime(year, month, day, hour, minute, tz = \"America/New_York\")) flights_tsbl <- flights %>% as_tsibble( key = c(carrier, flight), index = sched_dep_datetime, regular = FALSE ) flights_tsbl #> # A tsibble: 336,776 x 20 [!] #> # Key: carrier, flight [5,725] #> year month day dep_time sched_dep_time dep_delay arr_time sched_arr_time #> #> 1 2013 11 3 1531 1540 -9 1653 1725 #> 2 2013 11 4 1539 1540 -1 1712 1725 #> 3 2013 11 5 1548 1540 8 1708 1725 #> 4 2013 11 6 1535 1540 -5 1657 1725 #> 5 2013 11 7 1549 1540 9 1733 1725 #> # ℹ 336,771 more rows #> # ℹ 12 more variables: arr_delay , carrier , flight , #> # tailnum , origin , dest , air_time , distance , #> # hour , minute , time_hour , sched_dep_datetime "},{"path":"https://tsibble.tidyverts.org/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Earo Wang. Author, maintainer. Di Cook. Author, thesis advisor. Rob Hyndman. Author, thesis advisor. Mitchell O'Hara-Wild. Author. Tyler Smith. Contributor. Wil Davis. Contributor.","code":""},{"path":"https://tsibble.tidyverts.org/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Wang, E, D Cook, RJ Hyndman (2020). new tidy data structure support exploration modeling temporal data, Journal Computational Graphical Statistics, 29:3, 466-478, doi:10.1080/10618600.2019.1695624.","code":"@Article{, author = {Earo Wang and Dianne Cook and Rob J Hyndman}, title = {A new tidy data structure to support exploration and modeling of temporal data}, journal = {Journal of Computational and Graphical Statistics}, volume = {29}, number = {3}, pages = {466-478}, year = {2020}, publisher = {Taylor & Francis}, doi = {10.1080/10618600.2019.1695624}, url = {https://doi.org/10.1080/10618600.2019.1695624}, }"},{"path":"https://tsibble.tidyverts.org/index.html","id":"tsibble-","dir":"","previous_headings":"","what":"Tidy Temporal Data Frames and Tools","title":"Tidy Temporal Data Frames and Tools","text":"tsibble package provides data infrastructure tidy temporal data wrangling tools. Adapting tidy data principles, tsibble data- model-oriented object. tsibble: Index variable inherent ordering past present. Key set variables define observational units time. observation uniquely identified index key. observational unit measured common interval, regularly spaced.","code":""},{"path":"https://tsibble.tidyverts.org/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Tidy Temporal Data Frames and Tools","text":"install stable version CRAN: install development version Github using","code":"install.packages(\"tsibble\") # install.packages(\"remotes\") remotes::install_github(\"tidyverts/tsibble\")"},{"path":[]},{"path":"https://tsibble.tidyverts.org/index.html","id":"coerce-to-a-tsibble-with-as_tsibble","dir":"","previous_headings":"Get started","what":"Coerce to a tsibble with as_tsibble()","title":"Tidy Temporal Data Frames and Tools","text":"coerce data frame tsibble, need declare key index. example, weather data package nycflights13, time_hour containing date-times declared index, origin key. columns can considered measured variables. key can comprised empty, one, variables. See package?tsibble vignette(\"intro-tsibble\") details. interval computed index based representation, ranging year nanosecond, numerics ordered factors. table shows tsibble interprets common time formats. full list index classes supported tsibble can found package?tsibble.","code":"library(dplyr) library(tsibble) weather <- nycflights13::weather %>% select(origin, time_hour, temp, humid, precip) weather_tsbl <- as_tsibble(weather, key = origin, index = time_hour) weather_tsbl #> # A tsibble: 26,115 x 5 [1h] #> # Key: origin [3] #> origin time_hour temp humid precip #> #> 1 EWR 2013-01-01 01:00:00 39.0 59.4 0 #> 2 EWR 2013-01-01 02:00:00 39.0 61.6 0 #> 3 EWR 2013-01-01 03:00:00 39.0 64.4 0 #> 4 EWR 2013-01-01 04:00:00 39.9 62.2 0 #> 5 EWR 2013-01-01 05:00:00 39.0 64.4 0 #> # ℹ 26,110 more rows"},{"path":"https://tsibble.tidyverts.org/index.html","id":"fill_gaps-to-turn-implicit-missing-values-into-explicit-missing-values","dir":"","previous_headings":"Get started","what":"fill_gaps() to turn implicit missing values into explicit missing values","title":"Tidy Temporal Data Frames and Tools","text":"Often implicit missing cases time series. observations made regular time interval, turn implicit missingness explicit simply using fill_gaps(), filling gaps precipitation (precip) 0 meanwhile. quite common replaces NAs previous observation origin time series analysis, easily done using fill() tidyr. fill_gaps() also handles filling time gaps values functions, respects time zones date-times. Wanna quick overview implicit missing values? Check vignette(\"implicit-na\").","code":"full_weather <- weather_tsbl %>% fill_gaps(precip = 0) %>% group_by_key() %>% tidyr::fill(temp, humid, .direction = \"down\") full_weather #> # A tsibble: 26,190 x 5 [1h] #> # Key: origin [3] #> # Groups: origin [3] #> origin time_hour temp humid precip #> #> 1 EWR 2013-01-01 01:00:00 39.0 59.4 0 #> 2 EWR 2013-01-01 02:00:00 39.0 61.6 0 #> 3 EWR 2013-01-01 03:00:00 39.0 64.4 0 #> 4 EWR 2013-01-01 04:00:00 39.9 62.2 0 #> 5 EWR 2013-01-01 05:00:00 39.0 64.4 0 #> # ℹ 26,185 more rows"},{"path":"https://tsibble.tidyverts.org/index.html","id":"index_by--summarise-to-aggregate-over-calendar-periods","dir":"","previous_headings":"Get started","what":"index_by() + summarise() to aggregate over calendar periods","title":"Tidy Temporal Data Frames and Tools","text":"index_by() counterpart group_by() temporal context, groups index . conjunction index_by(), summarise() aggregates interested variables time periods. index_by() goes hand hand index functions including .Date(), yearweek(), yearmonth(), yearquarter(), well friends lubridate. example, interest computing average temperature total precipitation per month, applying yearmonth() index variable (referred .). collapsing rows (like summarise()), group_by() index_by() take care updating key index respectively. index_by() + summarise() combo can help regularising tsibble irregular time space .","code":"full_weather %>% group_by_key() %>% index_by(year_month = ~ yearmonth(.)) %>% # monthly aggregates summarise( avg_temp = mean(temp, na.rm = TRUE), ttl_precip = sum(precip, na.rm = TRUE) ) #> # A tsibble: 36 x 4 [1M] #> # Key: origin [3] #> origin year_month avg_temp ttl_precip #> #> 1 EWR 2013 Jan 35.6 3.53 #> 2 EWR 2013 Feb 34.2 3.83 #> 3 EWR 2013 Mar 40.1 3 #> 4 EWR 2013 Apr 53.0 1.47 #> 5 EWR 2013 May 63.3 5.44 #> # ℹ 31 more rows"},{"path":"https://tsibble.tidyverts.org/index.html","id":"learn-more-about-tsibble","dir":"","previous_headings":"","what":"Learn more about tsibble","title":"Tidy Temporal Data Frames and Tools","text":"ecosystem, tidyverts, built around tsibble object tidy time series analysis. tsibbledata package curates range tsibble data examples poke around tsibble object. feasts package provides support visualising data extracting time series features. fable package provides common forecasting methods tsibble, ARIMA ETS. fabletools package, fable built upon, lays modelling infrastructure ease programming tsibble. Please note project released Contributor Code Conduct. participating project agree abide terms.","code":""},{"path":"https://tsibble.tidyverts.org/reference/as-tibble.html","id":null,"dir":"Reference","previous_headings":"","what":"Coerce to a tibble or data frame — as_tibble.tbl_ts","title":"Coerce to a tibble or data frame — as_tibble.tbl_ts","text":"Coerce tibble data frame","code":""},{"path":"https://tsibble.tidyverts.org/reference/as-tibble.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Coerce to a tibble or data frame — as_tibble.tbl_ts","text":"","code":"# S3 method for tbl_ts as_tibble(x, ...)"},{"path":"https://tsibble.tidyverts.org/reference/as-tibble.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Coerce to a tibble or data frame — as_tibble.tbl_ts","text":"x tbl_ts. ... Ignored.","code":""},{"path":"https://tsibble.tidyverts.org/reference/as-tibble.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Coerce to a tibble or data frame — as_tibble.tbl_ts","text":"","code":"as_tibble(pedestrian) #> # A tibble: 66,037 × 5 #> Sensor Date_Time Date Time Count #> #> 1 Birrarung Marr 2015-01-01 00:00:00 2015-01-01 0 1630 #> 2 Birrarung Marr 2015-01-01 01:00:00 2015-01-01 1 826 #> 3 Birrarung Marr 2015-01-01 02:00:00 2015-01-01 2 567 #> 4 Birrarung Marr 2015-01-01 03:00:00 2015-01-01 3 264 #> 5 Birrarung Marr 2015-01-01 04:00:00 2015-01-01 4 139 #> 6 Birrarung Marr 2015-01-01 05:00:00 2015-01-01 5 77 #> 7 Birrarung Marr 2015-01-01 06:00:00 2015-01-01 6 44 #> 8 Birrarung Marr 2015-01-01 07:00:00 2015-01-01 7 56 #> 9 Birrarung Marr 2015-01-01 08:00:00 2015-01-01 8 113 #> 10 Birrarung Marr 2015-01-01 09:00:00 2015-01-01 9 166 #> # ℹ 66,027 more rows"},{"path":[]},{"path":"https://tsibble.tidyverts.org/reference/as-tsibble.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Coerce to a tsibble object — as_tsibble","text":"","code":"as_tsibble( x, key = NULL, index, regular = TRUE, validate = TRUE, .drop = TRUE, ... ) # S3 method for ts as_tsibble(x, ..., tz = \"UTC\") # S3 method for mts as_tsibble(x, ..., tz = \"UTC\", pivot_longer = TRUE)"},{"path":"https://tsibble.tidyverts.org/reference/as-tsibble.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Coerce to a tsibble object — as_tsibble","text":"x objects coerced tsibble (tbl_ts). key Variable(s) uniquely determine time indices. NULL empty key, c() multiple variables. works tidy selector (e.g. dplyr::starts_with()). index variable specify time index variable. regular Regular time interval (TRUE) irregular (FALSE). interval determined greatest common divisor index column, TRUE. validate TRUE suggests verify key combination key variables leads unique time indices (.e. valid tsibble). sure valid input, specify FALSE skip checks. .drop TRUE, empty key groups dropped. ... arguments passed individual methods. tz Time zone. May useful ts object frequent daily. pivot_longer TRUE gives \"longer\" form data, otherwise .","code":""},{"path":"https://tsibble.tidyverts.org/reference/as-tsibble.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Coerce to a tsibble object — as_tsibble","text":"tsibble object.","code":""},{"path":"https://tsibble.tidyverts.org/reference/as-tsibble.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Coerce to a tsibble object — as_tsibble","text":"tsibble sorted key first index.","code":""},{"path":"https://tsibble.tidyverts.org/reference/as-tsibble.html","id":"index","dir":"Reference","previous_headings":"","what":"Index","title":"Coerce to a tsibble object — as_tsibble","text":"extensive range indices supported tsibble: native time classes R (Date, POSIXct, difftime) tsibble's new additions (yearweek, yearmonth, yearquarter). commonly-used classes: ordered, hms::hms, lubridate::period, nanotime::nanotime. tbl_ts regular interval, choice index representation made. example, monthly data correspond time index created yearmonth, instead Date POSIXct. months year ensures regularity, 12 months every year. However, using Date, month containing days ranges 28 31 days, results irregular time space. also applicable year-week year-quarter. Tsibble supports arbitrary index classes, long can ordered past future. support custom class, need define index_valid() class calculate interval interval_pull().","code":""},{"path":"https://tsibble.tidyverts.org/reference/as-tsibble.html","id":"key","dir":"Reference","previous_headings":"","what":"Key","title":"Coerce to a tsibble object — as_tsibble","text":"Key variable(s) together index uniquely identifies record: Empty: implicit variable. NULL resulting univariate time series. single variable: example, data(pedestrian) uses Sensor key. Multiple variables: example, Declare key = c(Region, State, Purpose) data(tourism). Key can created conjunction tidy selectors like starts_with().","code":""},{"path":"https://tsibble.tidyverts.org/reference/as-tsibble.html","id":"interval","dir":"Reference","previous_headings":"","what":"Interval","title":"Coerce to a tsibble object — as_tsibble","text":"interval function returns interval associated tsibble. Regular: value time unit including \"nanosecond\", \"microsecond\", \"millisecond\", \"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\", \"year\". unrecognisable time interval labelled \"unit\". Irregular: as_tsibble(regular = FALSE) gives irregular tsibble. marked !. Unknown: determined (?), empty tsibble, one entry key variable. interval obtained based corresponding index representation: integerish numerics 1582 2499: \"year\" (Y). Note year 1582 saw beginning Gregorian Calendar switch. yearquarter: \"quarter\" (Q) yearmonth: \"month\" (M) yearweek: \"week\" (W) Date: \"day\" (D) difftime: \"week\" (W), \"day\" (D), \"hour\" (h), \"minute\" (m), \"second\" (s) POSIXt/hms: \"hour\" (h), \"minute\" (m), \"second\" (s), \"millisecond\" (us), \"microsecond\" (ms) period: \"year\" (Y), \"month\" (M), \"day\" (D), \"hour\" (h), \"minute\" (m), \"second\" (s), \"millisecond\" (us), \"microsecond\" (ms) nanotime: \"nanosecond\" (ns) numerics &ordered (ordered factor): \"unit\" interval obtained due mismatched index format, error issued. interval invariant subsetting, filter(), slice(), [.tbl_ts. However, result empty tsibble, interval always unknown. joining tsibble data sources aggregating different time scales, interval gets re-calculated.","code":""},{"path":[]},{"path":"https://tsibble.tidyverts.org/reference/as-tsibble.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Coerce to a tsibble object — as_tsibble","text":"","code":"# coerce tibble to tsibble w/o a key tbl1 <- tibble( date = as.Date(\"2017-01-01\") + 0:9, value = rnorm(10) ) as_tsibble(tbl1) #> Using `date` as index variable. #> # A tsibble: 10 x 2 [1D] #> date value #> #> 1 2017-01-01 -1.40 #> 2 2017-01-02 0.255 #> 3 2017-01-03 -2.44 #> 4 2017-01-04 -0.00557 #> 5 2017-01-05 0.622 #> 6 2017-01-06 1.15 #> 7 2017-01-07 -1.82 #> 8 2017-01-08 -0.247 #> 9 2017-01-09 -0.244 #> 10 2017-01-10 -0.283 # supply the index to suppress the message as_tsibble(tbl1, index = date) #> # A tsibble: 10 x 2 [1D] #> date value #> #> 1 2017-01-01 -1.40 #> 2 2017-01-02 0.255 #> 3 2017-01-03 -2.44 #> 4 2017-01-04 -0.00557 #> 5 2017-01-05 0.622 #> 6 2017-01-06 1.15 #> 7 2017-01-07 -1.82 #> 8 2017-01-08 -0.247 #> 9 2017-01-09 -0.244 #> 10 2017-01-10 -0.283 # coerce tibble to tsibble with a single variable for key # use `yearquarter()` to represent quarterly data tbl2 <- tibble( qtr = rep(yearquarter(\"2010 Q1\") + 0:9, 3), group = rep(c(\"x\", \"y\", \"z\"), each = 10), value = rnorm(30) ) # \"qtr\" is automatically considered as the index var as_tsibble(tbl2, key = group) #> Using `qtr` as index variable. #> # A tsibble: 30 x 3 [1Q] #> # Key: group [3] #> qtr group value #> #> 1 2010 Q1 x -0.554 #> 2 2010 Q2 x 0.629 #> 3 2010 Q3 x 2.07 #> 4 2010 Q4 x -1.63 #> 5 2011 Q1 x 0.512 #> 6 2011 Q2 x -1.86 #> 7 2011 Q3 x -0.522 #> 8 2011 Q4 x -0.0526 #> 9 2012 Q1 x 0.543 #> 10 2012 Q2 x -0.914 #> # ℹ 20 more rows as_tsibble(tbl2, key = group, index = qtr) #> # A tsibble: 30 x 3 [1Q] #> # Key: group [3] #> qtr group value #> #> 1 2010 Q1 x -0.554 #> 2 2010 Q2 x 0.629 #> 3 2010 Q3 x 2.07 #> 4 2010 Q4 x -1.63 #> 5 2011 Q1 x 0.512 #> 6 2011 Q2 x -1.86 #> 7 2011 Q3 x -0.522 #> 8 2011 Q4 x -0.0526 #> 9 2012 Q1 x 0.543 #> 10 2012 Q2 x -0.914 #> # ℹ 20 more rows # create a tsibble with multiple variables for key # use `yearmonth()` to represent monthly data tbl3 <- tibble( mth = rep(yearmonth(\"2010 Jan\") + 0:8, each = 3), xyz = rep(c(\"x\", \"y\", \"z\"), each = 9), abc = rep(letters[1:3], times = 9), value = rnorm(27) ) as_tsibble(tbl3, key = c(xyz, abc)) #> Using `mth` as index variable. #> # A tsibble: 27 x 4 [1M] #> # Key: xyz, abc [9] #> mth xyz abc value #> #> 1 2010 Jan x a 0.0700 #> 2 2010 Feb x a -0.251 #> 3 2010 Mar x a 0.0465 #> 4 2010 Jan x b -0.639 #> 5 2010 Feb x b 0.445 #> 6 2010 Mar x b 0.578 #> 7 2010 Jan x c -0.0500 #> 8 2010 Feb x c 2.76 #> 9 2010 Mar x c 0.118 #> 10 2010 Apr y a -1.91 #> # ℹ 17 more rows # coerce ts to tsibble as_tsibble(AirPassengers) #> # A tsibble: 144 x 2 [1M] #> index value #> #> 1 1949 Jan 112 #> 2 1949 Feb 118 #> 3 1949 Mar 132 #> 4 1949 Apr 129 #> 5 1949 May 121 #> 6 1949 Jun 135 #> 7 1949 Jul 148 #> 8 1949 Aug 148 #> 9 1949 Sep 136 #> 10 1949 Oct 119 #> # ℹ 134 more rows as_tsibble(sunspot.year) #> # A tsibble: 289 x 2 [1Y] #> index value #> #> 1 1700 5 #> 2 1701 11 #> 3 1702 16 #> 4 1703 23 #> 5 1704 36 #> 6 1705 58 #> 7 1706 29 #> 8 1707 20 #> 9 1708 10 #> 10 1709 8 #> # ℹ 279 more rows as_tsibble(sunspot.month) #> # A tsibble: 3,177 x 2 [1M] #> index value #> #> 1 1749 Jan 58 #> 2 1749 Feb 62.6 #> 3 1749 Mar 70 #> 4 1749 Apr 55.7 #> 5 1749 May 85 #> 6 1749 Jun 83.5 #> 7 1749 Jul 94.8 #> 8 1749 Aug 66.3 #> 9 1749 Sep 75.9 #> 10 1749 Oct 75.5 #> # ℹ 3,167 more rows as_tsibble(austres) #> # A tsibble: 89 x 2 [1Q] #> index value #> #> 1 1971 Q2 13067. #> 2 1971 Q3 13130. #> 3 1971 Q4 13198. #> 4 1972 Q1 13254. #> 5 1972 Q2 13304. #> 6 1972 Q3 13354. #> 7 1972 Q4 13409. #> 8 1973 Q1 13459. #> 9 1973 Q2 13504. #> 10 1973 Q3 13553. #> # ℹ 79 more rows # coerce mts to tsibble z <- ts(matrix(rnorm(300), 100, 3), start = c(1961, 1), frequency = 12) as_tsibble(z) #> # A tsibble: 300 x 3 [1M] #> # Key: key [3] #> index key value #> #> 1 1961 Jan Series 1 0.132 #> 2 1961 Feb Series 1 0.489 #> 3 1961 Mar Series 1 -1.70 #> 4 1961 Apr Series 1 -1.47 #> 5 1961 May Series 1 0.284 #> 6 1961 Jun Series 1 1.34 #> 7 1961 Jul Series 1 0.237 #> 8 1961 Aug Series 1 1.32 #> 9 1961 Sep Series 1 0.524 #> 10 1961 Oct Series 1 0.607 #> # ℹ 290 more rows as_tsibble(z, pivot_longer = FALSE) #> # A tsibble: 100 x 4 [1M] #> index `Series 1` `Series 2` `Series 3` #> #> 1 1961 Jan 0.132 0.364 -0.968 #> 2 1961 Feb 0.489 -0.286 -0.103 #> 3 1961 Mar -1.70 0.518 0.240 #> 4 1961 Apr -1.47 -0.103 0.0609 #> 5 1961 May 0.284 -0.974 -2.18 #> 6 1961 Jun 1.34 1.27 -0.118 #> 7 1961 Jul 0.237 0.961 0.112 #> 8 1961 Aug 1.32 0.769 0.00789 #> 9 1961 Sep 0.524 1.04 1.88 #> 10 1961 Oct 0.607 -0.474 2.16 #> # ℹ 90 more rows"},{"path":[]},{"path":"https://tsibble.tidyverts.org/reference/as.ts.tbl_ts.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Coerce a tsibble to a time series — as.ts.tbl_ts","text":"","code":"# S3 method for tbl_ts as.ts(x, value, frequency = NULL, fill = NA_real_, ...)"},{"path":"https://tsibble.tidyverts.org/reference/as.ts.tbl_ts.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Coerce a tsibble to a time series — as.ts.tbl_ts","text":"x tbl_ts object. value measured variable interest spread columns, multiple measures. frequency smart frequency default NULL. set, preferred frequency passed ts(). fill value replace missing values. ... Ignored function.","code":""},{"path":"https://tsibble.tidyverts.org/reference/as.ts.tbl_ts.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Coerce a tsibble to a time series — as.ts.tbl_ts","text":"ts object.","code":""},{"path":"https://tsibble.tidyverts.org/reference/as.ts.tbl_ts.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Coerce a tsibble to a time series — as.ts.tbl_ts","text":"","code":"# a monthly series x1 <- as_tsibble(AirPassengers) as.ts(x1) #> Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec #> 1949 112 118 132 129 121 135 148 148 136 119 104 118 #> 1950 115 126 141 135 125 149 170 170 158 133 114 140 #> 1951 145 150 178 163 172 178 199 199 184 162 146 166 #> 1952 171 180 193 181 183 218 230 242 209 191 172 194 #> 1953 196 196 236 235 229 243 264 272 237 211 180 201 #> 1954 204 188 235 227 234 264 302 293 259 229 203 229 #> 1955 242 233 267 269 270 315 364 347 312 274 237 278 #> 1956 284 277 317 313 318 374 413 405 355 306 271 306 #> 1957 315 301 356 348 355 422 465 467 404 347 305 336 #> 1958 340 318 362 348 363 435 491 505 404 359 310 337 #> 1959 360 342 406 396 420 472 548 559 463 407 362 405 #> 1960 417 391 419 461 472 535 622 606 508 461 390 432"},{"path":"https://tsibble.tidyverts.org/reference/build_tsibble.html","id":null,"dir":"Reference","previous_headings":"","what":"Low-level constructor for a tsibble object — build_tsibble","title":"Low-level constructor for a tsibble object — build_tsibble","text":"build_tsibble() creates tbl_ts object controls. useful creating tbl_ts internally inside function, allows developers determine time needs ordering interval needs calculating.","code":""},{"path":"https://tsibble.tidyverts.org/reference/build_tsibble.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Low-level constructor for a tsibble object — build_tsibble","text":"","code":"build_tsibble( x, key = NULL, key_data = NULL, index, index2 = index, ordered = NULL, interval = TRUE, validate = TRUE, .drop = key_drop_default(x) )"},{"path":"https://tsibble.tidyverts.org/reference/build_tsibble.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Low-level constructor for a tsibble object — build_tsibble","text":"x data.frame, tbl_df, tbl_ts, tabular objects. key Variable(s) uniquely determine time indices. NULL empty key, c() multiple variables. works tidy selector (e.g. dplyr::starts_with()). key_data data frame containing key variables .rows. data frame supplied, argument key ignored. index variable specify time index variable. index2 candidate index update index new one index_by. default, identical index. ordered default NULL arranges key variable(s) first index past future. TRUE suggests skip ordering x correct order. FALSE checks ordering may give warning. interval TRUE automatically calculates interval, FALSE irregular interval. Use specified interval via new_interval() . validate TRUE suggests verify key combination key variables leads unique time indices (.e. valid tsibble). sure valid input, specify FALSE skip checks. .drop TRUE, empty key groups dropped.","code":""},{"path":"https://tsibble.tidyverts.org/reference/build_tsibble.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Low-level constructor for a tsibble object — build_tsibble","text":"","code":"# Prepare `pedestrian` to use a new index `Date` ---- pedestrian %>% build_tsibble( key = !!key_vars(.), index = !!index(.), index2 = Date, interval = interval(.) ) #> # A tsibble: 66,037 x 5 [1h] #> # Key: Sensor [4] #> # Groups: @ Date [731] #> Sensor Date_Time Date Time Count #> #> 1 Birrarung Marr 2015-01-01 00:00:00 2015-01-01 0 1630 #> 2 Birrarung Marr 2015-01-01 01:00:00 2015-01-01 1 826 #> 3 Birrarung Marr 2015-01-01 02:00:00 2015-01-01 2 567 #> 4 Birrarung Marr 2015-01-01 03:00:00 2015-01-01 3 264 #> 5 Birrarung Marr 2015-01-01 04:00:00 2015-01-01 4 139 #> 6 Birrarung Marr 2015-01-01 05:00:00 2015-01-01 5 77 #> 7 Birrarung Marr 2015-01-01 06:00:00 2015-01-01 6 44 #> 8 Birrarung Marr 2015-01-01 07:00:00 2015-01-01 7 56 #> 9 Birrarung Marr 2015-01-01 08:00:00 2015-01-01 8 113 #> 10 Birrarung Marr 2015-01-01 09:00:00 2015-01-01 9 166 #> # ℹ 66,027 more rows"},{"path":"https://tsibble.tidyverts.org/reference/build_tsibble_meta.html","id":null,"dir":"Reference","previous_headings":"","what":"Low-level & high-performance constructor for a tsibble object — build_tsibble_meta","title":"Low-level & high-performance constructor for a tsibble object — build_tsibble_meta","text":"build_tsibble_meta() much less checks build_tsibble() high performance.","code":""},{"path":"https://tsibble.tidyverts.org/reference/build_tsibble_meta.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Low-level & high-performance constructor for a tsibble object — build_tsibble_meta","text":"","code":"build_tsibble_meta( x, key_data = NULL, index, index2, ordered = NULL, interval = NULL )"},{"path":"https://tsibble.tidyverts.org/reference/build_tsibble_meta.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Low-level & high-performance constructor for a tsibble object — build_tsibble_meta","text":"x data.frame, tbl_df, tbl_ts, tabular objects. key_data data frame containing key variables .rows. data frame supplied, argument key ignored. index, index2 Quoted variable name. ordered TRUE suggests skip ordering x correct order. FALSE checks ordering may give warning. interval TRUE automatically calculates interval, FALSE irregular interval. Use specified interval via new_interval() .","code":""},{"path":"https://tsibble.tidyverts.org/reference/count_gaps.html","id":null,"dir":"Reference","previous_headings":"","what":"Count implicit gaps — count_gaps","title":"Count implicit gaps — count_gaps","text":"Count implicit gaps","code":""},{"path":"https://tsibble.tidyverts.org/reference/count_gaps.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Count implicit gaps — count_gaps","text":"","code":"count_gaps( .data, .full = FALSE, .name = c(\".from\", \".to\", \".n\"), .start = NULL, .end = NULL )"},{"path":"https://tsibble.tidyverts.org/reference/count_gaps.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Count implicit gaps — count_gaps","text":".data tsibble. .full FALSE inserts NA keyed unit within period. TRUE fills NA entire time span data (.k.. fully balanced panel). start() pad NA starting point (.e. min()) across units. end() pad NA ending point (.e. max()) across units. .name Strings name new columns. .start, .end Set custom starting/ending time allows expand existing time spans.","code":""},{"path":"https://tsibble.tidyverts.org/reference/count_gaps.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Count implicit gaps — count_gaps","text":"tibble contains: \"key\" tbl_ts \".\": starting time point gap \".\": ending time point gap \".n\": number implicit missing observations time period","code":""},{"path":[]},{"path":"https://tsibble.tidyverts.org/reference/count_gaps.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Count implicit gaps — count_gaps","text":"","code":"ped_gaps <- pedestrian %>% count_gaps(.full = TRUE) ped_gaps #> # A tibble: 19 × 4 #> Sensor .from .to .n #> #> 1 Birrarung Marr 2015-04-05 02:00:00 2015-04-05 02:00:00 1 #> 2 Birrarung Marr 2015-05-07 00:00:00 2015-05-31 23:00:00 600 #> 3 Birrarung Marr 2015-10-06 00:00:00 2015-10-31 23:00:00 624 #> 4 Birrarung Marr 2015-11-05 00:00:00 2015-11-06 23:00:00 48 #> 5 Birrarung Marr 2015-11-20 00:00:00 2015-11-24 23:00:00 120 #> 6 Birrarung Marr 2015-11-26 00:00:00 2015-12-04 23:00:00 216 #> 7 Birrarung Marr 2016-04-03 02:00:00 2016-04-03 02:00:00 1 #> 8 Birrarung Marr 2016-04-08 00:00:00 2016-05-03 23:00:00 624 #> 9 Birrarung Marr 2016-10-29 00:00:00 2016-11-28 23:00:00 744 #> 10 Bourke Street Mall (North) 2015-01-01 00:00:00 2015-02-16 23:00:00 1128 #> 11 Bourke Street Mall (North) 2015-04-05 02:00:00 2015-04-05 02:00:00 1 #> 12 Bourke Street Mall (North) 2016-04-03 02:00:00 2016-04-03 02:00:00 1 #> 13 QV Market-Elizabeth St (West) 2015-04-05 02:00:00 2015-04-05 02:00:00 1 #> 14 QV Market-Elizabeth St (West) 2015-12-31 00:00:00 2015-12-31 23:00:00 24 #> 15 QV Market-Elizabeth St (West) 2016-04-03 02:00:00 2016-04-03 02:00:00 1 #> 16 Southern Cross Station 2015-04-05 02:00:00 2015-04-05 02:00:00 1 #> 17 Southern Cross Station 2016-03-08 02:00:00 2016-03-08 02:00:00 1 #> 18 Southern Cross Station 2016-03-29 02:00:00 2016-03-29 03:00:00 2 #> 19 Southern Cross Station 2016-04-03 02:00:00 2016-04-03 02:00:00 1 if (!requireNamespace(\"ggplot2\", quietly = TRUE)) { stop(\"Please install the ggplot2 package to run these following examples.\") } library(ggplot2) ggplot(ped_gaps, aes(x = Sensor, colour = Sensor)) + geom_linerange(aes(ymin = .from, ymax = .to)) + geom_point(aes(y = .from)) + geom_point(aes(y = .to)) + coord_flip() + theme(legend.position = \"bottom\")"},{"path":[]},{"path":"https://tsibble.tidyverts.org/reference/default_time_units.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Time units from tsibble's ","text":"","code":"default_time_units(x)"},{"path":"https://tsibble.tidyverts.org/reference/default_time_units.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Time units from tsibble's ","text":"x interval.","code":""},{"path":[]},{"path":"https://tsibble.tidyverts.org/reference/difference.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Lagged differences — difference","text":"","code":"difference(x, lag = 1, differences = 1, default = NA, order_by = NULL)"},{"path":"https://tsibble.tidyverts.org/reference/difference.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Lagged differences — difference","text":"x vector lag positive integer indicating lag use. differences positive integer indicating order difference. default value used pad x back original size lag lead applied. default, NULL, pads missing value. supplied, must vector size 1, cast type x. order_by optional secondary vector defines ordering use applying lag lead x. supplied, must size x.","code":""},{"path":"https://tsibble.tidyverts.org/reference/difference.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Lagged differences — difference","text":"numeric vector length x.","code":""},{"path":[]},{"path":"https://tsibble.tidyverts.org/reference/difference.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Lagged differences — difference","text":"","code":"# examples from base difference(1:10, 2) #> [1] NA NA 2 2 2 2 2 2 2 2 difference(1:10, 2, 2) #> [1] NA NA NA NA 0 0 0 0 0 0 x <- cumsum(cumsum(1:10)) difference(x, lag = 2) #> [1] NA NA 9 16 25 36 49 64 81 100 difference(x, differences = 2) #> [1] NA NA 3 4 5 6 7 8 9 10 # Use order_by if data not already ordered (example from dplyr) library(dplyr, warn.conflicts = FALSE) tsbl <- tsibble(year = 2000:2005, value = (0:5)^2, index = year) scrambled <- tsbl %>% slice(sample(nrow(tsbl))) #> Warning: Current temporal ordering may yield unexpected results. #> ℹ Suggest to sort by ``, `year` first. wrong <- mutate(scrambled, diff = difference(value)) #> Warning: Current temporal ordering may yield unexpected results. #> ℹ Suggest to sort by ``, `year` first. #> Warning: Current temporal ordering may yield unexpected results. #> ℹ Suggest to sort by ``, `year` first. arrange(wrong, year) #> # A tsibble: 6 x 3 [1Y] #> year value diff #> #> 1 2000 0 -25 #> 2 2001 1 -3 #> 3 2002 4 -5 #> 4 2003 9 9 #> 5 2004 16 NA #> 6 2005 25 9 right <- mutate(scrambled, diff = difference(value, order_by = year)) #> Warning: Current temporal ordering may yield unexpected results. #> ℹ Suggest to sort by ``, `year` first. #> Warning: Current temporal ordering may yield unexpected results. #> ℹ Suggest to sort by ``, `year` first. arrange(right, year) #> # A tsibble: 6 x 3 [1Y] #> year value diff #> #> 1 2000 0 NA #> 2 2001 1 1 #> 3 2002 4 3 #> 4 2003 9 5 #> 5 2004 16 7 #> 6 2005 25 9"},{"path":"https://tsibble.tidyverts.org/reference/duplicates.html","id":null,"dir":"Reference","previous_headings":"","what":"Test duplicated observations determined by key and index variables — is_duplicated","title":"Test duplicated observations determined by key and index variables — is_duplicated","text":"is_duplicated(): logical scalar data exist duplicated observations. are_duplicated(): logical vector, length row number data. duplicates(): identical key-index data entries.","code":""},{"path":"https://tsibble.tidyverts.org/reference/duplicates.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Test duplicated observations determined by key and index variables — is_duplicated","text":"","code":"is_duplicated(data, key = NULL, index) are_duplicated(data, key = NULL, index, from_last = FALSE) duplicates(data, key = NULL, index)"},{"path":"https://tsibble.tidyverts.org/reference/duplicates.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Test duplicated observations determined by key and index variables — is_duplicated","text":"data data frame creating tsibble. key Variable(s) uniquely determine time indices. NULL empty key, c() multiple variables. works tidy selector (e.g. dplyr::starts_with()). index variable specify time index variable. from_last TRUE duplication check last identical elements.","code":""},{"path":"https://tsibble.tidyverts.org/reference/duplicates.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Test duplicated observations determined by key and index variables — is_duplicated","text":"","code":"harvest <- tibble( year = c(2010, 2011, 2013, 2011, 2012, 2014, 2014), fruit = c(rep(c(\"kiwi\", \"cherry\"), each = 3), \"cherry\"), kilo = sample(1:10, size = 7) ) is_duplicated(harvest, key = fruit, index = year) #> [1] TRUE are_duplicated(harvest, key = fruit, index = year) #> [1] FALSE FALSE FALSE FALSE FALSE FALSE TRUE are_duplicated(harvest, key = fruit, index = year, from_last = TRUE) #> [1] FALSE FALSE FALSE FALSE FALSE TRUE FALSE duplicates(harvest, key = fruit, index = year) #> # A tibble: 2 × 3 #> year fruit kilo #> #> 1 2014 cherry 10 #> 2 2014 cherry 4"},{"path":[]},{"path":"https://tsibble.tidyverts.org/reference/fill_gaps.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Turn implicit missing values into explicit missing values — fill_gaps","text":"","code":"fill_gaps(.data, ..., .full = FALSE, .start = NULL, .end = NULL)"},{"path":"https://tsibble.tidyverts.org/reference/fill_gaps.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Turn implicit missing values into explicit missing values — fill_gaps","text":".data tsibble. ... set name-value pairs. values provided replace missing values marked \"implicit\", leave previously existing NA untouched. empty: filled default NA. filled values functions. .full FALSE inserts NA keyed unit within period. TRUE fills NA entire time span data (.k.. fully balanced panel). start() pad NA starting point (.e. min()) across units. end() pad NA ending point (.e. max()) across units. .start, .end Set custom starting/ending time allows expand existing time spans.","code":""},{"path":[]},{"path":"https://tsibble.tidyverts.org/reference/fill_gaps.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Turn implicit missing values into explicit missing values — fill_gaps","text":"","code":"harvest <- tsibble( year = c(2010, 2011, 2013, 2011, 2012, 2014), fruit = rep(c(\"kiwi\", \"cherry\"), each = 3), kilo = sample(1:10, size = 6), key = fruit, index = year ) # gaps as default `NA` fill_gaps(harvest, .full = TRUE) #> # A tsibble: 10 x 3 [1Y] #> # Key: fruit [2] #> year fruit kilo #> #> 1 2010 cherry NA #> 2 2011 cherry 4 #> 3 2012 cherry 5 #> 4 2013 cherry NA #> 5 2014 cherry 8 #> 6 2010 kiwi 3 #> 7 2011 kiwi 2 #> 8 2012 kiwi NA #> 9 2013 kiwi 10 #> 10 2014 kiwi NA fill_gaps(harvest, .full = start()) #> # A tsibble: 9 x 3 [1Y] #> # Key: fruit [2] #> year fruit kilo #> #> 1 2010 cherry NA #> 2 2011 cherry 4 #> 3 2012 cherry 5 #> 4 2013 cherry NA #> 5 2014 cherry 8 #> 6 2010 kiwi 3 #> 7 2011 kiwi 2 #> 8 2012 kiwi NA #> 9 2013 kiwi 10 fill_gaps(harvest, .full = end()) #> # A tsibble: 9 x 3 [1Y] #> # Key: fruit [2] #> year fruit kilo #> #> 1 2011 cherry 4 #> 2 2012 cherry 5 #> 3 2013 cherry NA #> 4 2014 cherry 8 #> 5 2010 kiwi 3 #> 6 2011 kiwi 2 #> 7 2012 kiwi NA #> 8 2013 kiwi 10 #> 9 2014 kiwi NA fill_gaps(harvest, .start = 2009, .end = 2016) #> # A tsibble: 16 x 3 [1Y] #> # Key: fruit [2] #> year fruit kilo #> #> 1 2009 cherry NA #> 2 2010 cherry NA #> 3 2011 cherry 4 #> 4 2012 cherry 5 #> 5 2013 cherry NA #> 6 2014 cherry 8 #> 7 2015 cherry NA #> 8 2016 cherry NA #> 9 2009 kiwi NA #> 10 2010 kiwi 3 #> 11 2011 kiwi 2 #> 12 2012 kiwi NA #> 13 2013 kiwi 10 #> 14 2014 kiwi NA #> 15 2015 kiwi NA #> 16 2016 kiwi NA full_harvest <- fill_gaps(harvest, .full = FALSE) full_harvest #> # A tsibble: 8 x 3 [1Y] #> # Key: fruit [2] #> year fruit kilo #> #> 1 2011 cherry 4 #> 2 2012 cherry 5 #> 3 2013 cherry NA #> 4 2014 cherry 8 #> 5 2010 kiwi 3 #> 6 2011 kiwi 2 #> 7 2012 kiwi NA #> 8 2013 kiwi 10 # replace gaps with a specific value harvest %>% fill_gaps(kilo = 0L) #> # A tsibble: 8 x 3 [1Y] #> # Key: fruit [2] #> year fruit kilo #> #> 1 2011 cherry 4 #> 2 2012 cherry 5 #> 3 2013 cherry 0 #> 4 2014 cherry 8 #> 5 2010 kiwi 3 #> 6 2011 kiwi 2 #> 7 2012 kiwi 0 #> 8 2013 kiwi 10 # replace gaps using a function by variable harvest %>% fill_gaps(kilo = sum(kilo)) #> # A tsibble: 8 x 3 [1Y] #> # Key: fruit [2] #> year fruit kilo #> #> 1 2011 cherry 4 #> 2 2012 cherry 5 #> 3 2013 cherry 32 #> 4 2014 cherry 8 #> 5 2010 kiwi 3 #> 6 2011 kiwi 2 #> 7 2012 kiwi 32 #> 8 2013 kiwi 10 # replace gaps using a function for each group harvest %>% group_by_key() %>% fill_gaps(kilo = sum(kilo)) #> # A tsibble: 8 x 3 [1Y] #> # Key: fruit [2] #> # Groups: fruit [2] #> year fruit kilo #> #> 1 2011 cherry 4 #> 2 2012 cherry 5 #> 3 2013 cherry 17 #> 4 2014 cherry 8 #> 5 2010 kiwi 3 #> 6 2011 kiwi 2 #> 7 2012 kiwi 15 #> 8 2013 kiwi 10 # leaves existing `NA` untouched harvest[2, 3] <- NA harvest %>% group_by_key() %>% fill_gaps(kilo = sum(kilo, na.rm = TRUE)) #> # A tsibble: 8 x 3 [1Y] #> # Key: fruit [2] #> # Groups: fruit [2] #> year fruit kilo #> #> 1 2011 cherry 4 #> 2 2012 cherry NA #> 3 2013 cherry 12 #> 4 2014 cherry 8 #> 5 2010 kiwi 3 #> 6 2011 kiwi 2 #> 7 2012 kiwi 15 #> 8 2013 kiwi 10 # replace NA pedestrian %>% group_by_key() %>% fill_gaps(Count = as.integer(median(Count))) #> # A tsibble: 69,048 x 5 [1h] #> # Key: Sensor [4] #> # Groups: Sensor [4] #> Sensor Date_Time Date Time Count #> #> 1 Birrarung Marr 2015-01-01 00:00:00 2015-01-01 0 1630 #> 2 Birrarung Marr 2015-01-01 01:00:00 2015-01-01 1 826 #> 3 Birrarung Marr 2015-01-01 02:00:00 2015-01-01 2 567 #> 4 Birrarung Marr 2015-01-01 03:00:00 2015-01-01 3 264 #> 5 Birrarung Marr 2015-01-01 04:00:00 2015-01-01 4 139 #> 6 Birrarung Marr 2015-01-01 05:00:00 2015-01-01 5 77 #> 7 Birrarung Marr 2015-01-01 06:00:00 2015-01-01 6 44 #> 8 Birrarung Marr 2015-01-01 07:00:00 2015-01-01 7 56 #> 9 Birrarung Marr 2015-01-01 08:00:00 2015-01-01 8 113 #> 10 Birrarung Marr 2015-01-01 09:00:00 2015-01-01 9 166 #> # ℹ 69,038 more rows if (!requireNamespace(\"tidyr\", quietly = TRUE)) { stop(\"Please install the 'tidyr' package to run these following examples.\") } # use fill() to fill `NA` by previous/next entry pedestrian %>% group_by_key() %>% fill_gaps() %>% tidyr::fill(Count, .direction = \"down\") #> # A tsibble: 69,048 x 5 [1h] #> # Key: Sensor [4] #> # Groups: Sensor [4] #> Sensor Date_Time Date Time Count #> #> 1 Birrarung Marr 2015-01-01 00:00:00 2015-01-01 0 1630 #> 2 Birrarung Marr 2015-01-01 01:00:00 2015-01-01 1 826 #> 3 Birrarung Marr 2015-01-01 02:00:00 2015-01-01 2 567 #> 4 Birrarung Marr 2015-01-01 03:00:00 2015-01-01 3 264 #> 5 Birrarung Marr 2015-01-01 04:00:00 2015-01-01 4 139 #> 6 Birrarung Marr 2015-01-01 05:00:00 2015-01-01 5 77 #> 7 Birrarung Marr 2015-01-01 06:00:00 2015-01-01 6 44 #> 8 Birrarung Marr 2015-01-01 07:00:00 2015-01-01 7 56 #> 9 Birrarung Marr 2015-01-01 08:00:00 2015-01-01 8 113 #> 10 Birrarung Marr 2015-01-01 09:00:00 2015-01-01 9 166 #> # ℹ 69,038 more rows"},{"path":"https://tsibble.tidyverts.org/reference/filter_index.html","id":null,"dir":"Reference","previous_headings":"","what":"A shorthand for filtering time index for a tsibble — filter_index","title":"A shorthand for filtering time index for a tsibble — filter_index","text":"shorthand respects time zones encourages compact expressions.","code":""},{"path":"https://tsibble.tidyverts.org/reference/filter_index.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"A shorthand for filtering time index for a tsibble — filter_index","text":"","code":"filter_index(.data, ..., .preserve = FALSE)"},{"path":"https://tsibble.tidyverts.org/reference/filter_index.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"A shorthand for filtering time index for a tsibble — filter_index","text":".data tsibble. ... Formulas specify start end periods (inclusive), strings. ~ end . ~ end: beginning specified ending period. start ~ end: specified beginning ending periods. start ~ .: specified beginning end data. Supported index type: POSIXct (seconds), Date, yearweek, yearmonth/yearmon, yearquarter/yearqtr, hms/difftime & numeric. .preserve Relevant .data input grouped. .preserve = FALSE (default), grouping structure recalculated based resulting data, otherwise grouping kept .","code":""},{"path":"https://tsibble.tidyverts.org/reference/filter_index.html","id":"system-time-zone-europe-london-","dir":"Reference","previous_headings":"","what":"System Time Zone (\"Europe/London\")","title":"A shorthand for filtering time index for a tsibble — filter_index","text":"known issue extra hour gained machine setting time zone \"Europe/London\", regardless time zone associated POSIXct inputs. relates anytime Boost. Use Sys.timezone() check system time zone \"Europe/London\". recommended change global environment \"TZ\" equivalent names: GB, GB-Eire, Europe/Belfast, Europe/Guernsey, Europe/Isle_of_Man Europe/Jersey documented ?Sys.timezone(), using Sys.setenv(TZ = \"GB\") example.","code":""},{"path":[]},{"path":"https://tsibble.tidyverts.org/reference/filter_index.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"A shorthand for filtering time index for a tsibble — filter_index","text":"","code":"# from the starting time to the end of Feb, 2015 pedestrian %>% filter_index(~ \"2015-02\") #> # A tsibble: 4,536 x 5 [1h] #> # Key: Sensor [4] #> Sensor Date_Time Date Time Count #> #> 1 Birrarung Marr 2015-01-01 00:00:00 2015-01-01 0 1630 #> 2 Birrarung Marr 2015-01-01 01:00:00 2015-01-01 1 826 #> 3 Birrarung Marr 2015-01-01 02:00:00 2015-01-01 2 567 #> 4 Birrarung Marr 2015-01-01 03:00:00 2015-01-01 3 264 #> 5 Birrarung Marr 2015-01-01 04:00:00 2015-01-01 4 139 #> 6 Birrarung Marr 2015-01-01 05:00:00 2015-01-01 5 77 #> 7 Birrarung Marr 2015-01-01 06:00:00 2015-01-01 6 44 #> 8 Birrarung Marr 2015-01-01 07:00:00 2015-01-01 7 56 #> 9 Birrarung Marr 2015-01-01 08:00:00 2015-01-01 8 113 #> 10 Birrarung Marr 2015-01-01 09:00:00 2015-01-01 9 166 #> # ℹ 4,526 more rows # entire Feb 2015, & from the beginning of Aug 2016 to the end pedestrian %>% filter_index(\"2015-02\", \"2016-08\" ~ .) #> # A tsibble: 16,244 x 5 [1h] #> # Key: Sensor [4] #> Sensor Date_Time Date Time Count #> #> 1 Birrarung Marr 2015-02-01 00:00:00 2015-02-01 0 178 #> 2 Birrarung Marr 2015-02-01 01:00:00 2015-02-01 1 39 #> 3 Birrarung Marr 2015-02-01 02:00:00 2015-02-01 2 41 #> 4 Birrarung Marr 2015-02-01 03:00:00 2015-02-01 3 32 #> 5 Birrarung Marr 2015-02-01 04:00:00 2015-02-01 4 33 #> 6 Birrarung Marr 2015-02-01 05:00:00 2015-02-01 5 39 #> 7 Birrarung Marr 2015-02-01 06:00:00 2015-02-01 6 45 #> 8 Birrarung Marr 2015-02-01 07:00:00 2015-02-01 7 45 #> 9 Birrarung Marr 2015-02-01 08:00:00 2015-02-01 8 96 #> 10 Birrarung Marr 2015-02-01 09:00:00 2015-02-01 9 116 #> # ℹ 16,234 more rows # multiple time windows pedestrian %>% filter_index(~\"2015-02\", \"2015-08\" ~ \"2015-09\", \"2015-12\" ~ \"2016-02\") #> # A tsibble: 19,008 x 5 [1h] #> # Key: Sensor [4] #> Sensor Date_Time Date Time Count #> #> 1 Birrarung Marr 2015-01-01 00:00:00 2015-01-01 0 1630 #> 2 Birrarung Marr 2015-01-01 01:00:00 2015-01-01 1 826 #> 3 Birrarung Marr 2015-01-01 02:00:00 2015-01-01 2 567 #> 4 Birrarung Marr 2015-01-01 03:00:00 2015-01-01 3 264 #> 5 Birrarung Marr 2015-01-01 04:00:00 2015-01-01 4 139 #> 6 Birrarung Marr 2015-01-01 05:00:00 2015-01-01 5 77 #> 7 Birrarung Marr 2015-01-01 06:00:00 2015-01-01 6 44 #> 8 Birrarung Marr 2015-01-01 07:00:00 2015-01-01 7 56 #> 9 Birrarung Marr 2015-01-01 08:00:00 2015-01-01 8 113 #> 10 Birrarung Marr 2015-01-01 09:00:00 2015-01-01 9 166 #> # ℹ 18,998 more rows # entire 2015 pedestrian %>% filter_index(\"2015\") #> # A tsibble: 32,276 x 5 [1h] #> # Key: Sensor [4] #> Sensor Date_Time Date Time Count #> #> 1 Birrarung Marr 2015-01-01 00:00:00 2015-01-01 0 1630 #> 2 Birrarung Marr 2015-01-01 01:00:00 2015-01-01 1 826 #> 3 Birrarung Marr 2015-01-01 02:00:00 2015-01-01 2 567 #> 4 Birrarung Marr 2015-01-01 03:00:00 2015-01-01 3 264 #> 5 Birrarung Marr 2015-01-01 04:00:00 2015-01-01 4 139 #> 6 Birrarung Marr 2015-01-01 05:00:00 2015-01-01 5 77 #> 7 Birrarung Marr 2015-01-01 06:00:00 2015-01-01 6 44 #> 8 Birrarung Marr 2015-01-01 07:00:00 2015-01-01 7 56 #> 9 Birrarung Marr 2015-01-01 08:00:00 2015-01-01 8 113 #> 10 Birrarung Marr 2015-01-01 09:00:00 2015-01-01 9 166 #> # ℹ 32,266 more rows # specific pedestrian %>% filter_index(\"2015-03-23\" ~ \"2015-10\") #> # A tsibble: 20,180 x 5 [1h] #> # Key: Sensor [4] #> Sensor Date_Time Date Time Count #> #> 1 Birrarung Marr 2015-03-23 00:00:00 2015-03-23 0 39 #> 2 Birrarung Marr 2015-03-23 01:00:00 2015-03-23 1 24 #> 3 Birrarung Marr 2015-03-23 02:00:00 2015-03-23 2 1 #> 4 Birrarung Marr 2015-03-23 03:00:00 2015-03-23 3 3 #> 5 Birrarung Marr 2015-03-23 04:00:00 2015-03-23 4 16 #> 6 Birrarung Marr 2015-03-23 05:00:00 2015-03-23 5 36 #> 7 Birrarung Marr 2015-03-23 06:00:00 2015-03-23 6 178 #> 8 Birrarung Marr 2015-03-23 07:00:00 2015-03-23 7 462 #> 9 Birrarung Marr 2015-03-23 08:00:00 2015-03-23 8 756 #> 10 Birrarung Marr 2015-03-23 09:00:00 2015-03-23 9 289 #> # ℹ 20,170 more rows pedestrian %>% filter_index(\"2015-03-23\" ~ \"2015-10-31\") #> # A tsibble: 20,180 x 5 [1h] #> # Key: Sensor [4] #> Sensor Date_Time Date Time Count #> #> 1 Birrarung Marr 2015-03-23 00:00:00 2015-03-23 0 39 #> 2 Birrarung Marr 2015-03-23 01:00:00 2015-03-23 1 24 #> 3 Birrarung Marr 2015-03-23 02:00:00 2015-03-23 2 1 #> 4 Birrarung Marr 2015-03-23 03:00:00 2015-03-23 3 3 #> 5 Birrarung Marr 2015-03-23 04:00:00 2015-03-23 4 16 #> 6 Birrarung Marr 2015-03-23 05:00:00 2015-03-23 5 36 #> 7 Birrarung Marr 2015-03-23 06:00:00 2015-03-23 6 178 #> 8 Birrarung Marr 2015-03-23 07:00:00 2015-03-23 7 462 #> 9 Birrarung Marr 2015-03-23 08:00:00 2015-03-23 8 756 #> 10 Birrarung Marr 2015-03-23 09:00:00 2015-03-23 9 289 #> # ℹ 20,170 more rows pedestrian %>% filter_index(\"2015-03-23 10\" ~ \"2015-10-31 12\") #> # A tsibble: 20,107 x 5 [1h] #> # Key: Sensor [4] #> Sensor Date_Time Date Time Count #> #> 1 Birrarung Marr 2015-03-23 10:00:00 2015-03-23 10 199 #> 2 Birrarung Marr 2015-03-23 11:00:00 2015-03-23 11 120 #> 3 Birrarung Marr 2015-03-23 12:00:00 2015-03-23 12 317 #> 4 Birrarung Marr 2015-03-23 13:00:00 2015-03-23 13 583 #> 5 Birrarung Marr 2015-03-23 14:00:00 2015-03-23 14 265 #> 6 Birrarung Marr 2015-03-23 15:00:00 2015-03-23 15 275 #> 7 Birrarung Marr 2015-03-23 16:00:00 2015-03-23 16 409 #> 8 Birrarung Marr 2015-03-23 17:00:00 2015-03-23 17 698 #> 9 Birrarung Marr 2015-03-23 18:00:00 2015-03-23 18 546 #> 10 Birrarung Marr 2015-03-23 19:00:00 2015-03-23 19 276 #> # ℹ 20,097 more rows"},{"path":[]},{"path":"https://tsibble.tidyverts.org/reference/group_by_key.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Group by key variables — group_by_key","text":"","code":"group_by_key(.data, ..., .drop = key_drop_default(.data))"},{"path":"https://tsibble.tidyverts.org/reference/group_by_key.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Group by key variables — group_by_key","text":".data tbl_ts object. ... Ignored. .drop Drop groups formed factor levels appear data? default TRUE except .data previously grouped .drop = FALSE. See group_by_drop_default() details.","code":""},{"path":"https://tsibble.tidyverts.org/reference/group_by_key.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Group by key variables — group_by_key","text":"","code":"tourism %>% group_by_key() #> # A tsibble: 24,320 x 5 [1Q] #> # Key: Region, State, Purpose [304] #> # Groups: Region, State, Purpose [304] #> Quarter Region State Purpose Trips #>
NEWS.md
difference()
CRAN release: 2024-01-29
vec_ptype2()
yearweek
yearquarter