Skip to content
New issue

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? Sign in to your account

[BUG] across() does not accept quoted fun/funcs. #56

Closed
eyayaw opened this issue Nov 18, 2020 · 1 comment
Closed

[BUG] across() does not accept quoted fun/funcs. #56

eyayaw opened this issue Nov 18, 2020 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@eyayaw
Copy link

eyayaw commented Nov 18, 2020

across() does not accept quoted fun/funcs.

poorman::summarize(iris, poorman::across(c("Sepal.Length", "Sepal.Width"), list("mean", "sd", "median") ))
#> Error in funs[[j]](col, ...): attempt to apply non-function
dplyr::summarize(iris, dplyr::across(c("Sepal.Length", "Sepal.Width"), list("mean", "sd", "median")))
#>   Sepal.Length_1 Sepal.Length_2 Sepal.Length_3 Sepal.Width_1 Sepal.Width_2
#> 1       5.843333      0.8280661            5.8      3.057333     0.4358663
#>   Sepal.Width_3
#> 1             3

package version: Version: 0.2.3
R.version: R version 4.0.2 (2020-06-22)

Note: both poorman's and dplyr's across do not work when I supply a single quoted function. dplyr::summarize(iris, dplyr::across(c("Sepal.Length", "Sepal.Width"), "mean"))

@eyayaw eyayaw added the bug Something isn't working label Nov 18, 2020
@nathaneastwood nathaneastwood changed the title [BUG] [BUG] across() does not accept quoted fun/funcs. Nov 19, 2020
@nathaneastwood
Copy link
Owner

This has been handled in 8ce9fbf

@nathaneastwood nathaneastwood added this to the 0.2.5 milestone Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants