runapp-aus / strayr

A catalogue of ready-to-use ABS coding structures. Package documentation can be found here: https://runapp-aus.github.io/strayr/
45 stars 15 forks source link

`auholidays` has duplicates #107

Closed baslat closed 1 year ago

baslat commented 1 year ago

And probably for the other states too.

strayr::auholidays |>
    dplyr::filter(lubridate::year(Date) == 2023, Jurisdiction == "VIC") |>
    dplyr::arrange(Date) |> 
    print(n = 28)
#> # A tibble: 28 × 3
#>    Date       Name                              Jurisdiction
#>    <date>     <chr>                             <chr>       
#>  1 2023-01-01 New Year's Day                    VIC         
#>  2 2023-01-01 New Year's Day                    VIC         
#>  3 2023-01-02 New Year's Day (observed)         VIC         
#>  4 2023-01-02 New Year's Day (observed)         VIC         
#>  5 2023-01-26 Australia Day                     VIC         
#>  6 2023-01-26 Australia Day                     VIC         
#>  7 2023-03-13 Labour Day                        VIC         
#>  8 2023-03-13 Labour Day                        VIC         
#>  9 2023-04-07 Good Friday                       VIC         
#> 10 2023-04-07 Good Friday                       VIC         
#> 11 2023-04-08 Easter Saturday                   VIC         
#> 12 2023-04-08 Easter Saturday                   VIC         
#> 13 2023-04-09 Easter Sunday                     VIC         
#> 14 2023-04-09 Easter Sunday                     VIC         
#> 15 2023-04-10 Easter Monday                     VIC         
#> 16 2023-04-10 Easter Monday                     VIC         
#> 17 2023-04-25 Anzac Day                         VIC         
#> 18 2023-04-25 Anzac Day                         VIC         
#> 19 2023-06-12 King's Birthday                   VIC         
#> 20 2023-06-12 King's Birthday                   VIC         
#> 21 2023-09-29 Friday before the AFL Grand Final VIC         
#> 22 2023-09-29 Friday before the AFL Grand Final VIC         
#> 23 2023-11-07 Melbourne Cup                     VIC         
#> 24 2023-11-07 Melbourne Cup                     VIC         
#> 25 2023-12-25 Christmas Day                     VIC         
#> 26 2023-12-25 Christmas Day                     VIC         
#> 27 2023-12-26 Boxing Day                        VIC         
#> 28 2023-12-26 Boxing Day                        VIC

packageVersion("strayr")
#> [1] '0.2.2.9000'

Created on 2023-09-28 with reprex v2.0.2

MattCowgill commented 1 year ago

Thanks @baslat . The Title Case column names are also unfortunate but I'm loath to change it in case it breaks someone's code