Skip to contents

Returns an integer vector with years for which hospital admission microdata are available from DATASUS FTP.

Usage

sih_years(status = "final")

Arguments

status

Character. Filter by data status. One of:

  • "final": Definitive data only (default).

  • "preliminary": Preliminary data only.

  • "all": All available data (definitive + preliminary).

Value

An integer vector of available years.

Examples

sih_years()
#>  [1] 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022
#> [16] 2023
sih_years(status = "all")
#>  [1] 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022
#> [16] 2023 2024