knitr::opts_chunk$set(echo = TRUE)
library(Ipaper) ## example-01 d1 <- data.table(x = c(1, 2, 3, 4, 5), y = c(4, 3, 5, 2, 1)) d2 <- data.table(x = c(1, 6, 3, 4), z = c(10, 9, 8, 7)) print(d1) print(d2) merge(d1, d2, by = "x")
info <- match2(d1$x, d2$x)
print(info) cbind(d1[info$I_x], d2[info$I_y])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.