Skip to content

automatically name unnamed pluckers in hoist #837

@mgirlich

Description

@mgirlich

Often one wants to name the columns produced by hoist() the same as the element in the list. So to make hoist() less verbose and more comfortable for interactive use I propose automatically naming the column as follows for unnamed arguments:

  • if the last part of the pluck specification is a character use that
  • if the last part of the pluck specification is a number paste the number to the last character part of the spec, e.g. list("film", 1) would produce the column name film_1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementrectangling 🗄️converting deeply nested lists into tidy data frames

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions