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
...
...names()
...elt(n)
...length()
apply()
chkDots()
f <- function(x, ...) { xargs <- list(...) if (is.null(xargs$na.rm)) xargs$na.rm <- TRUE xargs$x <- x do.call(quantile, xargs) } f(1:10) #> 0% 25% 50% 75% 100% #> 1.00 3.25 5.50 7.75 10.00 f(c(1:10, NA)) #> 0% 25% 50% 75% 100% #> 1.00 3.25 5.50 7.75 10.00 f(c(1:10, NA), na.rm = FALSE) #> Error in quantile.default(na.rm = FALSE, x = c(1L, 2L, 3L, 4L, 5L, 6L, : missing values and NaN's not allowed if 'na.rm' is FALSE
Created on 2022-03-11 by the reprex package (v2.0.1.9000)
Bonus: Options for clickbait title
"Everything you've always wanted to know about ..."
The text was updated successfully, but these errors were encountered:
I like the idea and the title 😂
Another use case is to have some sort of DSL. E.g. in glitter we use .... We then handle the passed things with rlang::enquos().
rlang::enquos()
Sorry, something went wrong.
https://design.tidyverse.org/dots-after-required.html
https://rlang.r-lib.org/reference/index.html#check-dots
No branches or pull requests
...
:...names()
,...elt(n)
,...length()
, etc....
?apply()
)chkDots()
...
Created on 2022-03-11 by the reprex package (v2.0.1.9000)
Bonus: Options for clickbait title
"Everything you've always wanted to know about ..."
The text was updated successfully, but these errors were encountered: