Skip to content

Add merge indicator after a join #6435

@nmarantz

Description

@nmarantz

A prior iteration of this request was closed and locked as old, but the asserted rationale does not address the request. It would be very useful if the dplyr mutating join functions allowed for an option to create a variable indicating which observations were joined (or not) from each data frame. This is a feature available in Stata's merge command and in Pandas (indicator = True). It has been implemented in R through the statar package, but it would be great to have it included in the dplyr mutating join functions.

The purported rationale for closing the earlier iteration of this feature request was that tidylog has solved the problem. The tidylog package is great, but it doesn't add any variables to the merged data frame, which was the initial feature request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementtables 🧮joins and set operations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions