Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
evaluate = function(x) c('F', 'D', 'C', 'B', 'A')[findInterval(x, c(0, 60, 70, 80, 90, 100))]
data.table(grade = c(50L, 91L, 95L, 51L, 89L))[ , .N, by = evaluate(grade)]
1: F 2
2: A 2
3: B 1
Found during some codecov testing. Any other function foo there (except eval, since that case is handled differently) the output would be named foo. It's because the regex here:
tt = grep("^eval|^[^[:alpha:]. ]", byvars, invert=TRUE, value=TRUE)
tt = grep("^eval$|^[^[:alpha:]. ]", byvars, invert=TRUE, value=TRUE)
Already fixed as part of a coverage PR forthcoming
The text was updated successfully, but these errors were encountered:
Closes #3758 and completes coverage of data.table.R
Successfully merging a pull request may close this issue.