I thought I've seen this FR before, but couldn't find it.
Would be nice if we could specify column names using regex expressions in .SDcols. Currently one has to do something like .SDcols = grep("mypattern", names(myDT)), which you can't chain on, and is pretty fragile.
Perhaps the patterns function from melt can be reused here, making the syntax .SDcols = patterns("mypattern").
I thought I've seen this FR before, but couldn't find it.
Would be nice if we could specify column names using regex expressions in
.SDcols. Currently one has to do something like.SDcols = grep("mypattern", names(myDT)), which you can't chain on, and is pretty fragile.Perhaps the
patternsfunction frommeltcan be reused here, making the syntax.SDcols = patterns("mypattern").