merge_robust | R Documentation |
Ensure two data.table are merged properly. Necessary due to inconsistencies with how data.table are evaluated in different scopes.
merge_robust(x, y, by = NULL, dup_stop = TRUE, na_stop = TRUE, ...)
x, y |
|
by |
A vector of shared column names in |
dup_stop |
Throw an error if duplicates of the |
na_stop |
Throw an error if all of the data from |
... |
Additional arguments passed to merge.data.table. |
dat <- echodata::BST1
x <- dat[,c("SNP","CHR","POS")]
y <- dat[,c("SNP","Support","leadSNP")]
z <- merge_robust(x=x, y=y, by="SNP")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.