powered by
Find row indices of a data frame that match a specific condition.
data_match(x, to, ...)
A data frame.
A data frame matching the specified conditions.
Other arguments passed to or from other functions.
A dataframe containing rows that match the specified configuration.
# NOT RUN { matching_rows <- data_match(mtcars, data.frame(vs = 0, am = 1)) mtcars[matching_rows, ] matching_rows <- data_match(mtcars, data.frame(vs = 0, am = c(0, 1))) mtcars[matching_rows, ] # }
Run the code above in your browser using DataLab