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

character scalar or vector

by.x, by.table

character scalar or vector

view.table

(optional) character scalar or vector, variable names of table to be printed in fuzzy suggestion (if applicable)

trace

logical scalar, to provide detailed diagnosis information, default FALSE

...

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 = 100, replace = TRUE), ]
matchDF(DF)

[Package ThomasJeffersonUniv version 0.1.2 Index]