.merge | R Documentation |
Clean Merge
.merge(dt1, dt2, by)
dt1 |
data.table |
dt2 |
data.table |
by |
string |
require(data.table)
dt1 <- data.table(feature_id = c('PG1', 'PG2'), gene = c('G1', 'G2'))
dt2 <- data.table(feature_id = c('PG1', 'PG2'), protein = c('P1', 'P2'))
dt1 %<>% .merge(dt2, by = 'feature_id')
dt1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.