View source: R/universal_useful.R
match_df | R Documentation |
Match works in the same way as join, but instead of return the combined dataset, it only returns the matching rows from the first dataset. This is particularly useful when you've summarised the data in some way and want to subset the original data by a characteristic of the subset.
match_df(x, y, out = NULL, on = NULL, verbose = FALSE)
x |
data frame to subset. |
y |
data frame defining matching rows. |
out |
|
on |
variables to match on - by default will use all variables common to both data frames. |
tbl/dbl/lgl
Depending on
plyr::match_df
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.