Skip to content

Implement date_expand(), calendar_expand(), and time_point_expand() #279

Closed
@DavisVaughan

Description

@DavisVaughan

Similar idea to tidyr::full_seq()

  • calendar_expand() works with year/quarter/month precision inputs
  • time_point_expand() works with week...nanosecond precision inputs
  • Both powered by seq() methods
  • date_expand() uses day precision for Date and second precision for POSIXt, powered by the above
  • Good handling of size zero inputs

Probably needs good definitions of min() and max() for all calendar / time-point types. In particular, min() and max() of empty calendar / time-point objects, which should return the max and min allowed values respectively, which are currently a little hard to define right now and are precision specific

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions