get_imputation_target_time: Get Time Imputation Targets

View source: R/derive_date_vars.R

get_imputation_target_timeR Documentation

Get Time Imputation Targets

Description

Get Time Imputation Targets

Usage

get_imputation_target_time(time_imputation)

Arguments

time_imputation

The value to impute the time when a timepart is missing.

A character value is expected, either as a

  • format with hour, min and sec specified as "hh:mm:ss": e.g. "00:00:00" for the start of the day,

  • or as a keyword: "first","last" to impute to the start/end of a day.

Details

  • For time_imputation = "first" "00", "00", "00" are returned.

  • For time_imputation = "last" "23", "59", "59" are returned.

  • For time_imputation = "<hh>:<mm>:<ss>" "<hh>", "<mm>", "<ss>" are returned.

Value

A list of character vectors. The elements of the list are named "hour", "minute", "second".

See Also

impute_dtc_dtm()

Utilities used for date imputation: dt_level(), dtm_level(), get_imputation_target_date(), get_partialdatetime(), restrict_imputed_dtc_dtm(), restrict_imputed_dtc_dt()


admiral documentation built on Oct. 19, 2023, 1:08 a.m.