Skip to contents

Gathers the values of companion _date targets (created by tar_target_date() or tar_age_date()) into a tibble::tibble with columns name and time.

Usage

collect_target_date(...)

Arguments

...

Date values from _date targets. Pass each _date target by name (e.g., x_date, y_date).

Value

A tibble::tibble with columns name (character) and time.

Examples

collect_target_date(x_date = as.Date("2024-01-01"), y_date = as.Date("2024-06-15"))
#> # A tibble: 2 × 2
#>   name                      time      
#>   <chr>                     <date>    
#> 1 "as.Date(\"2024-01-01\")" 2024-01-01
#> 2 "as.Date(\"2024-06-15\")" 2024-06-15