Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rammprasad committed Jun 19, 2024
1 parent d88093b commit cb3b9cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions R/derive_blfl.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
#'
#' @examples
#' ## Partial or missing dates set to NA by default
#' dtc_datepart(
#' sdtm.oak:::dtc_datepart(
#' c(NA, "", "2021", "2021-12", "2021-12-25", "2021-12-25T12:00:00")
#' )
#' # |--> c(NA, NA, NA, NA, "2021-12-25", "2021-12-25")
#'
#' ## Prevent partial or missing dates from being set to NA
#' dtc_datepart(
#' sdtm.oak:::dtc_datepart(
#' c(NA, "", "2021", "2021-12", "2021-12-25", "2021-12-25T12:00:00"),
#' partial_as_na = FALSE
#' )
Expand Down Expand Up @@ -55,27 +55,27 @@ dtc_datepart <- function(dtc, partial_as_na = TRUE) {
#'
#' @keywords internal
#' ## Partial or missing times set to NA and seconds ignored by default
#' dtc_timepart(
#' sdtm.oak:::dtc_timepart(
#' c(NA, "", "2021-12-25", "2021-12-25T12", "2021-12-25T12:30", "2021-12-25T12:30:59")
#' )
#' # |--> c(NA, NA, NA, NA, "12:30", "12:30")
#'
#' ## Prevent partial or missing times from being set to NA
#' dtc_timepart(
#' sdtm.oak:::dtc_timepart(
#' c(NA, "", "2021-12-25", "2021-12-25T12", "2021-12-25T12:30", "2021-12-25T12:30:59"),
#' partial_as_na = FALSE
#' )
#' # |--> c(NA, "", "", "12", "12:30", "12:30")
#'
#' ## Do not ignore seconds, partial or missing times set to NA
#' dtc_timepart(
#' sdtm.oak:::dtc_timepart(
#' c(NA, "", "2021-12-25", "2021-12-25T12", "2021-12-25T12:30", "2021-12-25T12:30:59"),
#' ignore_seconds = FALSE
#' )
#' # |--> c(NA, NA, NA, NA, NA, "12:30:59")
#'
#' ## Do not ignore seconds and prevent partial or missing times from being set to NA
#' dtc_timepart(
#' sdtm.oak:::dtc_timepart(
#' c(NA, "", "2021-12-25", "2021-12-25T12", "2021-12-25T12:30", "2021-12-25T12:30:59"),
#' partial_as_na = FALSE,
#' ignore_seconds = FALSE
Expand Down
4 changes: 2 additions & 2 deletions man/dtc_datepart.Rd

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

2 changes: 1 addition & 1 deletion man/dtc_timepart.Rd

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

0 comments on commit cb3b9cb

Please sign in to comment.