powered by
Filter a tbl on a column having values in a given set.
replyr_filter(x, cname, values, ..., verbose = TRUE, tempNameGenerator = makeTempNameGenerator("replyr_filter"))
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.
force later arguments to bind by name.
logical if TRUE echo warnings
temp name generator produced by cdata::makeTempNameGenerator, used to record dplyr::compute() effects.
new tbl with only rows where cname value is in values set.
# NOT RUN { values <- c('a','c') d <- data.frame(x=c('a','a','b','b','c','c'),y=1:6, stringsAsFactors=FALSE) replyr_filter(d,'x',values) # }
Run the code above in your browser using DataLab