Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jayhesselberth/5869a3f163e0f00797d449396ac78ea5 to your computer and use it in GitHub Desktop.
Save jayhesselberth/5869a3f163e0f00797d449396ac78ea5 to your computer and use it in GitHub Desktop.
library(tidyverse)
library(stringr)
test <- tribble(
~expr, ~time,
'bedtools:random', '1',
'bed_random', '2'
)
test %>%
mutate(sw = ifelse(str_detect(expr, 'bed_'), 'valr', 'bedtools'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment