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
But if the data is very big and by= is used, the performance can significantly decay. Also the first approach using get() has scoping problem if s1 or s2 are themselves columns of dt.
Is there any possibility that makes it easier to use dynamically determined symbol without such significant performance decay and scoping problem?
For example, something like
dt[, ..s1*..s2]
which is inspired by the ..x notation introduced lately.
The text was updated successfully, but these errors were encountered:
eval(as.name(s1)) is more efficient. But still, it would be great to generalize the .. notation so that it could replace the eval(as.name()) workaround.
Suppose I have a
data.table
created as follows:I need to do calculations with dynamically determined symbols within
j
likeTwo approaches can do the work:
But if the data is very big and
by=
is used, the performance can significantly decay. Also the first approach usingget()
has scoping problem ifs1
ors2
are themselves columns ofdt
.Is there any possibility that makes it easier to use dynamically determined symbol without such significant performance decay and scoping problem?
For example, something like
which is inspired by the
..x
notation introduced lately.The text was updated successfully, but these errors were encountered: