Learn R Programming

admiral (version 1.1.1)

get_imputation_target_time: Get Time Imputation Targets

Description

Get Time Imputation Targets

Usage

get_imputation_target_time(time_imputation)

Value

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

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.

See Also

impute_dtc_dtm()

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