powered by
Product a column noting if another columns values are in a given set.
replyr_inTest(x, cname, values, nname, ..., tempNameGenerator = mk_tmp_name_source("replyr_inTest"), verbose = TRUE)
tbl or item that can be coerced into such.
name of the column to test values of.
set of values to check set membership of.
name for new column
force later parameters to bind by name
temp name generator produced by wrapr::mk_tmp_name_source, used to record dplyr::compute() effects.
logical if TRUE echo warnings
table with membership indications.
# NOT RUN { values <- c('a','c') d <- data.frame(x=c('a','a','b',NA,'c','c'),y=1:6, stringsAsFactors=FALSE) replyr_inTest(d,'x',values,'match') # }
Run the code above in your browser using DataLab