Get Time Imputation Targets
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
Utilities used for date imputation:
dt_level(),
dtm_level(),
get_imputation_target_date(),
get_partialdatetime(),
restrict_imputed_dtc_dt(),
restrict_imputed_dtc_dtm()
Examples
# Get imputation target for "first" time
target_first_time <- admiral:::get_imputation_target_time("first")
print(target_first_time)
#> $hour
#> [1] "00"
#>
#> $minute
#> [1] "00"
#>
#> $second
#> [1] "00"
#>
# Get imputation target for "last" time
target_last_time <- admiral:::get_imputation_target_time("last")
print(target_last_time)
#> $hour
#> [1] "23"
#>
#> $minute
#> [1] "59"
#>
#> $second
#> [1] "59"
#>
# Get imputation target for custom time imputation "12-34-56"
target_custom_time <- admiral:::get_imputation_target_time("12-34-56")
print(target_custom_time)
#> $hour
#> [1] "12"
#>
#> $minute
#> [1] "34"
#>
#> $second
#> [1] "56"
#>
