We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acef6bb commit 1a6540aCopy full SHA for 1a6540a
vignettes/datatable-joins.Rmd
@@ -796,7 +796,7 @@ When we need to update `Products` with multiple columns from `ProductPriceHistor
796
cols <- setdiff(names(ProductPriceHistory), 'product_id')
797
Products[ProductPriceHistory,
798
on = .(id = product_id),
799
- (cols) := lapply(cols, function(cn) get(paste0("i.", cn)))]
+ (cols) := mget(paste0("i.", cols))]
800
```
801
- Efficiently updates multiple columns in `Products` from `ProductPriceHistory`.
802
- `mget(cols)` retrieves multiple matching columns dynamically.
0 commit comments