Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function idea(s) for subsetting #55

Open
rvanmazijk opened this issue Aug 30, 2020 · 0 comments
Open

Function idea(s) for subsetting #55

rvanmazijk opened this issue Aug 30, 2020 · 0 comments
Assignees
Labels
reproducibility Includes code or methods' transparency and alignment with open science principles

Comments

@rvanmazijk
Copy link
Collaborator

without <- function(x, y) {
  x[!(x %in% y)]
}
`%without%` <- function(x, y) {
  without(x, y) 
}
# E.g.:
x %<>% without(y)
# Or
x %>%
  without(y) %>%
  ...
# Or
x %without%
  y %>%
  ...
@rvanmazijk rvanmazijk created this issue from a note in Schoenus phylogeny planning (To do) Aug 30, 2020
@rvanmazijk rvanmazijk added the reproducibility Includes code or methods' transparency and alignment with open science principles label Aug 30, 2020
@rvanmazijk rvanmazijk self-assigned this Aug 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reproducibility Includes code or methods' transparency and alignment with open science principles
Projects
None yet
Development

No branches or pull requests

1 participant