Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (28 sloc) 0.694 kB
\title{Extract matching rows of a data frame.}
match_df(x, y, on = NULL)
\item{x}{data frame to subset.}
\item{y}{data frame defining matching rows.}
\item{on}{variables to match on - by default will use all
variables common to both data frames.}
a data frame
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.
longterm <- subset(count(baseball, "id"), freq > 25)
bb_longterm <- match_df(baseball, longterm)
\code{\link{join}} to combine the columns from both x and
Jump to Line
Something went wrong with that request. Please try again.