sqlMerge | R Documentation |
Merge implementation in SQLite for dealing with memory issues when normal merge functions get out of RAM
sqlMerge(x = NULL, y = NULL, by = NULL, drop = TRUE, replace = FALSE)
x |
Xdf data.frame class |
y |
Ydf data.frame class |
by |
Key variable, same type and name accross Xdf and Ydf |
drop |
Logical for remove original Xdf and Ydf |
replace |
Logical ovewrite an existing db file |
data.table object
# library(RSQLite) # library(DBI) # library(glue) # library(data.table) # temp <- mtcars # temp$id <- row.names(temp) # row.names(temp) <- NULL # yDF <- temp[1:26, c(12, 1:5)] # xDF <- temp[7:32, c(12, 6:11)] # sqlMerge(xDF, yDF, by = 'id', replace = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.