powered by
Get N and percent match of values between two columns of two data.tables
dt_pctmatch(x, y, on = NULL, left_on = NULL, right_on = NULL, verbosity = 1L)
list.
data.table: First input data.table.
data.table: Second input data.table.
Integer or character: column to read in x and y, if it is the same
x
y
Integer or character: column to read in x
Integer or character: column to read in y
Integer: Verbosity level.
EDG
library(data.table) x <- data.table(ID = 1:5, Alpha = letters[1:5]) y <- data.table(ID = c(3, 4, 5, 6), Beta = LETTERS[3:6]) dt_pctmatch(x, y, on = "ID")
Run the code above in your browser using DataLab