Skip to content

Commit

Permalink
Tidy up and document
Browse files Browse the repository at this point in the history
  • Loading branch information
Moohan committed Feb 8, 2022
1 parent 481d4f5 commit f67935e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
22 changes: 12 additions & 10 deletions R/rename.R
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#' Functions renamed in December 2021
#' Functions renamed in phsmethods 0.2.1 (Dec 2021)
#'
#' @description
#' `r lifecycle::badge('deprecated')`
#'
#' We renamed a number of function to improve code clarity.
#' The old functions are still usable but will produce a warning.
#' After a reasonable amount of time they will be removed completely.
#' phsmethods 0.2.1 renamed a number of functions
#' to improve code clarity. The old functions will still
#' work but will produce a warning. After a reasonable
#' amount of time they will be removed completely.
#'
#' * `postcode()` -> `format_postcode()`
#' * `age_group()` -> `create_age_groups()`
#' * `fin_year()` -> `extract_fin_year()`
#'
#'
#' @keywords internal
#' @name rename
#' @aliases NULL
Expand All @@ -35,11 +35,13 @@ age_group <- function(x,
as_factor = FALSE) {
lifecycle::deprecate_warn("0.2.1", "age_group()", "create_age_groups()")

return(create_age_groups(x = x,
from = from,
to = to,
by = by,
as_factor = as_factor))
return(create_age_groups(
x = x,
from = from,
to = to,
by = by,
as_factor = as_factor
))
}

#' @rdname rename
Expand Down
20 changes: 11 additions & 9 deletions man/rename.Rd

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

0 comments on commit f67935e

Please sign in to comment.