Skip to contents

Use the /revision endpoint of the OGD server to get a list of all datasets that have changed since a certain timestamp.

Usage

od_revisions(since = NULL, exclude_ext = TRUE, server = "ext")

Arguments

since

(optional) A timestamp. If supplied, only datasets updated later will be returned. Otherwise, all datasets are retured. Can be in either one of the following formats

  • a native R time type that is compatible with strftime() such as the return values of Sys.Date(), Sys.time() and file.mtime().

  • a string of the form YYYY-MM-DD to specify a day.

  • a string of the form YYYY-MM-DDThh:mm:ss to specify a day and a time.

exclude_ext

If TRUE (default) exclude all results that have OGDEXT_ as a prefix

server

the open data server to use. Either ext for the external server (the default) or red for the editing server. The editing server is only accessible for employees of Statistics Austria

Value

a character verctor with dataset ids

Examples

# get all datasets (including OGDEXT_*)
ids <- od_revisions(exclude_ext = FALSE)
ids
#> 398 datasets are available ([2024-04-18 10:02:41])
#> ids: OGDEXT_AEST_GEMTAB_1, OGDEXT_AMB_1, OGDEXT_BINNENWAND_1, …,
#> OGD_vpilhki45_VPI_LHKI45_1, and OGD_zlf_komm_ZLF_KOM_1
sample(ids, 6)
#> [1] "OGD_epi2021cpa15_EPI_2021_OECPA_1"
#> [2] "OGD_1531kn2_Aussenhandel_4"       
#> [3] "OGD_unistud4_ext_UNI_STUD4_1"     
#> [4] "OGD_veste309_Veste309_1"          
#> [5] "OGDEXT_KLASSDB_PRODCOM2021_1"     
#> [6] "OGD_fhsabs_ext_FHS_A_1"           

# get all the datasets since the fifteenth of august
od_revisions("2022-09-15")
#> 253 changes between [2022-09-15] and [2024-04-18 10:02:42]
#> ids: OGD_1531kn2_Aussenhandel_4, OGD_1905fue_FUE_B1905FUE_1,
#> OGD__steuer_est_ab_2008_altgesch_EST_2_2, …,
#> OGD_vpilhki45_VPI_LHKI45_1, and OGD_zlf_komm_ZLF_KOM_1