From 13e4e00db7ee6a9fd083d9c21c29a0ac18e1942f Mon Sep 17 00:00:00 2001 From: hadley Date: Wed, 2 Mar 2011 08:28:59 -0600 Subject: [PATCH] Improve match_df docs --- R/helper-match-df.r | 6 +++--- man/match_df.Rd | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/R/helper-match-df.r b/R/helper-match-df.r index 237eed23..d19a90c1 100644 --- a/R/helper-match-df.r +++ b/R/helper-match-df.r @@ -4,9 +4,9 @@ #' and want to subset the original data by a characteristic of the subset. #' #' @param x data frame to subset. -#' @param match data frame defining matching rows. -#' @param on variables to match on - by default all variables common to both -#' data frames will be used. +#' @param y data frame defining matching rows. +#' @param on variables to match on - by default will use all variables common +#' to both data frames. #' @return a data frame #' @seealso \code{\link{join}} to combine the columns from both x and y #' @export diff --git a/man/match_df.Rd b/man/match_df.Rd index 3ece0274..418077e7 100644 --- a/man/match_df.Rd +++ b/man/match_df.Rd @@ -16,9 +16,9 @@ \seealso{\code{\link{join}} to combine the columns from both x and y} \arguments{ \item{x}{data frame to subset.} - \item{match}{data frame defining matching rows.} - \item{on}{variables to match on - by default all variables common to both -data frames will be used.} + \item{y}{data frame defining matching rows.} + \item{on}{variables to match on - by default will use all variables common +to both data frames.} } \examples{longterm <- subset(count(baseball, "id"), freq > 25) bb_longterm <- match_df(baseball, longterm)}