Skip to content

Feature request: pairwise function #25

@wvictor14

Description

@wvictor14

I was wondering if there was a function that takes the pairwise differences (A-B)... And then I realized maybe having a function that applies any function and applies it in a pairwise manner. Something like:

# subtract
df %>% 
  pairwise(.f = '-')

# add
df %>% 
  pairwise(.f = '+')

# multiply
df %>% 
  pairwise(.f = '*')

Would this be useful? If there's interest I might try implementing something like that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions