Skip to content

vignettes: timeseries - ordered observations #3453

Description

@jangorecki

There is wide range of features that data.table has in context of ordered observations, if one works with timeseries data it is definitely worth to be aware of those:

key - clustered index

rleid
shift
rolling funs (yet to be completed)
nafill, setnafill

between
inrange
rolling join
non-equi .EACHI join
foverlaps

IDate, ITime, IDateTime

hour, isoweek, mday, minute, month, quarter, second, wday, week, yday, year

as.data.table.xts, as.xts.data.table

nanotime pkg support in fwrite

Activity

  1. self-assigned this
    on Jun 10, 2019
  2. added this to the 1.13.0 milestone on Jul 31, 2019
  3. modified the milestones: 1.12.7, 1.12.9 on Dec 8, 2019
  4. Henrik-P commented on Apr 22, 2020

    @Henrik-P

    Hi @jangorecki!

    A while ago I gave a data.table presentation at work, and now I realize that some of the material in the .Rmd file for the slides possibly may be of some use during the preparation of this vignette.
    So far I have short text snippets, and in most cases visualizations, for the following topics:

    • brief on normal join
    • rolling join: nearest, Inf. -Inf, fixed distance
    • non-equi join
    • between & inrange
    • rleid
    • shift
    • nafill & setnafill

    Please let me know if this may be something you wish to have a look at. I'm happy to share. And of course: just feel free to ignore it.

  5. jangorecki commented on Apr 22, 2020

    @jangorecki
    MemberAuthor

    @Henrik-P sure!

  6. Henrik-P commented on Apr 22, 2020

    @Henrik-P

    OK, thanks! I'm not a very skilled github user, so I will need to re-read the Contribution guidelines on how to share the .Rmd file the proper way ;)

  7. Henrik-P commented on Apr 24, 2020

    @Henrik-P

    @jangorecki A first draft of the .Rmd file is soon ready. Two questions of a more PR technical character: (1) Is it correct to assume that a test is not relevant for a vignette? At least I could find one for e.g. New vignette -- Usages of .SD. (2) Should I create a NEWS entry despite this is, at least from my perspective, very much work in progress?

    Cheers

  8. jangorecki commented on Apr 24, 2020

    @jangorecki
    MemberAuthor
    1. Yes, we don't need new unit tests for vignette. If you want to make your vignette future proof, one good option is to add hidden R chunks (include=F) in Rmd. In those chunks stopifnot()'s, so whenever a code will not meet expectations defined there, the vignette will terminate and not be built, we will easily spot that. But this is not really that important.
    2. We will need NEWS entry ultimately, but vignette is likely to be evolving before it will be merged, so not really important yet.

    Please ensure you push to Rdatatable org repo, so it will be easy for others to push commits there.

  9. MichaelChirico commented on Apr 27, 2020

    @MichaelChirico
    Member

    Yes, we don't need new unit tests for vignette. If you want to make your vignette future proof, one good option is to add hidden R chunks (include=F) in Rmd. In those chunks stopifnot()'s, so whenever a code will not meet expectations defined there, the vignette will terminate and not be built, we will easily spot that. But this is not really that important.

    very nice trick!

  10. removed their assignment
    on May 11, 2020
  11. modified the milestones: 1.13.1, 1.13.3 on Oct 17, 2020
  12. removed this from the 1.14.1 milestone on Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions