matchDF {ThomasJeffersonUniv} | R Documentation |
Match Rows of One data.frame to Another
Description
To match the rows of one data.frame to the rows of another data.frame.
Usage
matchDF(
x,
table = unique.data.frame(x),
by = names(x),
by.x = character(),
by.table = character(),
view.table = character(),
trace = FALSE,
...
)
Arguments
x |
data.frame, the rows of which to be matched. |
table |
data.frame, the rows of which to be matched against. |
by |
|
by.x , by.table |
|
view.table |
(optional) character scalar or vector,
variable names of |
trace |
logical scalar, to provide detailed diagnosis information, default |
... |
additional parameters, currently not in use |
Value
Function matchDF returns a integer vector
Note
Unfortunately, R does not provide case-insensitive match. Only case-insensitive grep methods are available.
Examples
DF = swiss[sample(nrow(swiss), size = 55, replace = TRUE), ]
matchDF(DF)
[Package ThomasJeffersonUniv version 0.1.3 Index]