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
Hi I tried to use by={list(var1, var2)} and I am getting the same error message as #321Error in bysubl[[jj + 1L]] : subscript out of bounds. I was expecting to get the same result as if I did by=list(var1, var2). If this syntax is not allowed, it would be useful to at least have a more informative error message.
Would be great to just use the approach in #3802 since what we're trying to accomplish is almost identical for auto-naming by and j.
Had made some progress to that effect but I guess there's some inconsistency in how by/j auto-name:
# take the first variable that is (1) not eval (#3758) and (2) starts with a character that can't start a variable name
tt = grep("^eval$|^[^[:alpha:]. ]", byvars, invert=TRUE, value=TRUE)
# byvars but exclude functions or `0`+`1` becomes `+`
tt = if (length(tt)) tt[1L] else all.vars(bysubl[[jj+1L]])[1L]
It makes sense to unify the approach (I believe) but that will have to wait for another release. Will have to hack a solution for this release 🤖
Hi I tried to use
by={list(var1, var2)}
and I am getting the same error message as #321Error in bysubl[[jj + 1L]] : subscript out of bounds
. I was expecting to get the same result as if I didby=list(var1, var2)
. If this syntax is not allowed, it would be useful to at least have a more informative error message.Here is a MRE:
The output I got on my system was:
The text was updated successfully, but these errors were encountered: