powered by
Find row indices of a data frame that are matching a specific configuration.
data_match(x, to)
A data frame.
The data frame of which to meet the characteristics.
# 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