Skip to content

more functions should be generic #1071

Open
@mgirlich

Description

@mgirlich

while bringing some functions from tidyr to dbplyr I noticed that a couple of tidyr functions should probably be generic:

  • uncount()

the pivot helpers would make sense as the dbplyr implemention of pivot_*() uses them anyway

  • build_longer_spec()/build_wider_spec()
  • pivot_longer_spec()/pivot_wider_spec()

data frame column helpers would make sense as nested tables in SQL are becoming more common (e.g. see tidyverse/dbplyr#515)

  • pack()/unpack()
  • unnest_longer()/unnest_wider()

list column helpers: not sure if they are needed but for completeness I also listed them here:

  • chop()/unchop()
  • hoist()

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementnesting 🐦nesting, chopping, and packingpivoting ♻️pivot rectangular data to different "shapes"rectangling 🗄️converting deeply nested lists into tidy data frames

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions