R/set.R

Defines functions dtt_set_time dtt_set_date dtt_set_year dtt_set_month dtt_set_day dtt_set_hour dtt_set_minute dtt_set_second

Documented in dtt_set_date dtt_set_day dtt_set_hour dtt_set_minute dtt_set_month dtt_set_second dtt_set_time dtt_set_year

#' @rdname dtt_second
#' @export
dtt_set_second <- function(x, value) {
  dtt_second(x) <- value
  x
}

#' @rdname dtt_minute
#' @export
dtt_set_minute <- function(x, value) {
  dtt_minute(x) <- value
  x
}

#' @rdname dtt_hour
#' @export
dtt_set_hour <- function(x, value) {
  dtt_hour(x) <- value
  x
}

#' @rdname dtt_day
#' @export
dtt_set_day <- function(x, value) {
  dtt_day(x) <- value
  x
}

#' @rdname dtt_month
#' @export
dtt_set_month <- function(x, value) {
  dtt_month(x) <- value
  x
}

#' @rdname dtt_year
#' @export
dtt_set_year <- function(x, value) {
  dtt_year(x) <- value
  x
}

#' @rdname dtt_date
#' @export
dtt_set_date <- function(x, value) {
  dtt_date(x) <- value
  x
}

#' @rdname dtt_time
#' @export
dtt_set_time <- function(x, value) {
  dtt_time(x) <- value
  x
}

Try the dttr2 package in your browser

Any scripts or data that you put into this service are public.

dttr2 documentation built on Sept. 19, 2021, 9:06 a.m.