Skip to content

Commit de13b1c

Browse files
committed
Try to fix concept documentation error
1 parent c912754 commit de13b1c

File tree

4 files changed

+12
-18
lines changed

4 files changed

+12
-18
lines changed

R/convert_to_date.R

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
#' # Mixed date source data can be provided.
2727
#' convert_to_date(c("2020-02-29", "40000.1"))
2828
#' @export
29-
#' @family If your input data has a mix of Excel numeric dates and actual dates,
30-
#' see the more powerful functions `convert_to_date` and
31-
#' `convert_to_datetime`.
29+
#' @family Date-time cleaning
3230
#' @importFrom lubridate ymd
3331
convert_to_date <- function(x, ..., character_fun=lubridate::ymd, string_conversion_failure=c("error", "warning")) {
3432
string_conversion_failure <- match.arg(string_conversion_failure)

R/excel_dates.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
#' A list of all timezones is available from \code{base::OlsonNames()}, and the
1414
#' current timezone is available from \code{base::Sys.timezone()}.
1515
#'
16+
#' If your input data has a mix of Excel numeric dates and actual dates, see the
17+
#' more powerful functions `convert_to_date()` and `convert_to_datetime()`.
18+
#'
1619
#' @param date_num numeric vector of serial numbers to convert.
1720
#' @param date_system the date system, either \code{"modern"} or \code{"mac
1821
#' pre-2011"}.
@@ -38,9 +41,7 @@
3841
#' excel_numeric_to_date(40000.521, include_time = TRUE) # Time is included
3942
#' excel_numeric_to_date(40000.521, include_time = TRUE,
4043
#' round_seconds = FALSE) # Time with fractional seconds is included
41-
#' @family If your input data has a mix of Excel numeric dates and actual dates,
42-
#' see the more powerful functions `convert_to_date` and
43-
#' `convert_to_datetime`.
44+
#' @family Date-time cleaning
4445

4546
# Converts a numeric value like 42414 into a date "2016-02-14"
4647

man/convert_to_date.Rd

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/excel_numeric_to_date.Rd

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)