Learn R Programming

ThomasJeffersonUniv (version 0.1.3)

matchDF: 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,
  ...
)

Value

Function matchDF returns a integer

vector

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

Examples

Run this code
DF = swiss[sample(nrow(swiss), size = 55, replace = TRUE), ]
matchDF(DF)

Run the code above in your browser using DataLab