View source: R/utils_data.table.R
| dt_pctmatch | R Documentation |
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)
x |
data.table: First input data.table. |
y |
data.table: Second input data.table. |
on |
Integer or character: column to read in |
left_on |
Integer or character: column to read in |
right_on |
Integer or character: column to read in |
verbosity |
Integer: Verbosity level. |
list.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.