Skip to content

Restore data frames generically #943

Open
@hadley

Description

@hadley

See existing work in #812, and see below for a list of functions that we needed to consider, and some thoughts on what form of genericity is needed. Goal is to make sure that data frame extensions return reasonable results in the absence of specific methods (and to make sure all needed functions are generic so that they can be extended when needed).

chop, unchop
pack, unpack
nest, unnest

separate, extract = append_df
hoist = append_df

complete = full_join + replace_na
drop_na = dplyr_row_slice
separate_rows = str_split + unchop
uncount = dplyr_row_slice + optional column removal
replace_na = dplyr_col_modify
expand = dplyr_reconstruct

pivot_longer = dplyr_reconstruct
pivot_wider = dplyr_reconstruct

# don't need to update superseded functions
gather, spread 
nest_legacy, unnest_legacy

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions