-
Notifications
You must be signed in to change notification settings - Fork 272
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
More modify methods #463
More modify methods #463
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please also add a bullet point to news following http://style.tidyverse.org/news.html#during-development?
R/modify.R
Outdated
@@ -87,6 +89,30 @@ modify.default <- function(.x, .f, ...) { | |||
.x[] <- map(.x, .f, ...) | |||
.x | |||
} | |||
#' @rdname modify | |||
#' @export | |||
modify.integer <- function (.x, .f, ...) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don’t think it’s necessary to document these individual methods - I think it makes the docs harder to understand.
OK, please take a look. |
Thanks for all your hard work on this! |
CRAN version does not preserve type of atomic vectors tidyverse/purrr#417 tidyverse/purrr#463
clean PR of #410 (one of these years I'll get the hang of git :)