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

Add support for across() in arrange() #88

Open
nathaneastwood opened this issue Apr 18, 2021 · 0 comments
Open

Add support for across() in arrange() #88

nathaneastwood opened this issue Apr 18, 2021 · 0 comments
Assignees
Labels
feature request New feature or request
Milestone

Comments

@nathaneastwood
Copy link
Owner

At a minimum, the following tests should pass

df <- data.frame(x = c(1, 3, 2, 1), y = c(4, 3, 2, 1))
expect_identical(
  df %>% arrange(across()),
  df %>% arrange(x, y),
  info = "arrange() supports across() (#88): 1"
)
expect_identical(
  df %>% arrange(across(.fns = desc)),
  df %>% arrange(desc(x), desc(y)),
  info = "arrange() supports across() (#88): 2"
)
expect_identical(
  df %>% arrange(across(x)),
  df %>% arrange(x),
  info = "arrange() supports across() (#88): 3"
)
expect_identical(
  df %>% arrange(across(y)),
  df %>% arrange(y),
  info = "arrange() supports across() (#88): 4"
)
@nathaneastwood nathaneastwood added the feature request New feature or request label Apr 18, 2021
@nathaneastwood nathaneastwood added this to the 0.2.6 milestone Apr 18, 2021
@nathaneastwood nathaneastwood self-assigned this Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant