Skip to content

Commit

Permalink
example
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Feb 6, 2024
1 parent 3615e4f commit 63de575
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions R/data_modify.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@
#' # can be combined with dots
#' data_modify(d, new_length = Petal.Length * 2, .at = "Species", .modify = as.numeric)
#'
#' # combine "data_find()" and ".at" argument
#' out <- data_modify(
#' d,
#' .at = data_find(d, select = starts_with("Sepal")),
#' .modify = as.factor
#' )
#' # "Sepal.Length" and "Sepal.Width" are now factors
#' str(out)
#'
#' @export
data_modify <- function(data, ...) {
UseMethod("data_modify")
Expand Down
9 changes: 9 additions & 0 deletions man/data_modify.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 63de575

Please sign in to comment.