You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess you will want to generalize to accepting a named list, similar to what dplyr/tidyr has in its many functions' fill= args (none of their names comes to mind...).
Concerning @arunsrinivasan's proposal: this might interfere with the new optimized subsetting implementation, where subsets in i are redirected to joins and nomatch is set to 0L, assuming that nomatch has no significance outside joins and can be altered automatically. While this can be changed, it should be considered when implementing nomatch for non-join operations.
Activity
franknarf1 commentedon Mar 15, 2018
I guess you will want to generalize to accepting a named list, similar to what dplyr/tidyr has in its many functions'
fill=args (none of their names comes to mind...).Example from SO with
iand multiple columns in:=: https://stackoverflow.com/a/49283432/I'm thinking...
If you do go that way, there's the similar case of
shiftas well:shift(data.table(a = 1:2, b = 3:4), fill = list(a = 11, b = 12)).New example from SO: https://stackoverflow.com/q/51673607/
arunsrinivasan commentedon Mar 19, 2018
Couldn't we use the already existing
nomatchargument here? It'd help makenomatchto be not specific to joins. Just a thought ...jangorecki commentedon Mar 20, 2018
exactly, #857
MarkusBonsch commentedon Apr 14, 2018
Concerning @arunsrinivasan's proposal: this might interfere with the new optimized subsetting implementation, where subsets in i are redirected to joins and nomatch is set to 0L, assuming that
nomatchhas no significance outside joins and can be altered automatically. While this can be changed, it should be considered when implementing nomatch for non-join operations.jangorecki commentedon Mar 3, 2019
Closing as duplicate.
nomatcharg is exactly about that.