Find the date of the first observation (NAs are dropped)
find_start.Rd
Find the date of the first observation (NAs are dropped)
Examples
quarterly_data_example |>
dplyr::mutate(E_NF_HI = dplyr::if_else(time < "2000-01-01", NA_real_, E_NF_HI)) |>
find_start()
#> [1] "2000-01-01" "1998-01-01" "1998-01-01" "1998-01-01" "1998-01-01"
#> [6] "1998-01-01" "1998-01-01" "1998-01-01" "1998-01-01" "1998-01-01"
#> [11] "1998-01-01" "1998-01-01" "1998-01-01" "1998-01-01" "1998-01-01"
#> [16] "1998-01-01" "1998-01-01" "1998-01-01" "1998-01-01" "1998-01-01"
#> [21] "1998-01-01" "1998-01-01" "1998-01-01" "1998-01-01" "1998-01-01"
#> [26] "1998-01-01" "1998-01-01" "1998-01-01" "1998-01-01" "1998-01-01"