We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fct_infreq
Current implementation has fct_infreq locked in descending order. Request is to passthrough an argument to order allowing both directions.
order
Current version is:
fct_infreq <- function(f, w = NULL, ordered = NA) { f <- check_factor(f) w <- compute_weights(f, w) check_bool(ordered, allow_na = TRUE) lvls_reorder(f, order(w, decreasing = TRUE), ordered = ordered) }
Example with update would be something like:
fct_infreq <- function(f, w = NULL, ordered = NA, desc = TRUE) { f <- check_factor(f) w <- compute_weights(f, w) check_bool(ordered, allow_na = TRUE) lvls_reorder(f, order(w, decreasing = desc), ordered = ordered) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current implementation has
fct_infreq
locked in descending order. Request is to passthrough an argument toorder
allowing both directions.Current version is:
Example with update would be something like:
The text was updated successfully, but these errors were encountered: