Convenience wrapper that calls ukh_ppd() for each year in a
vector and row-binds the results. Caches each year independently.
Arguments
- years
Integer vector. Years to fetch.
- ...
Additional arguments passed to
ukh_ppd()(e.g.la,postcode,property_type).
See also
Other price paid data:
ukh_ppd(),
ukh_ppd_address(),
ukh_ppd_bulk(),
ukh_ppd_summary(),
ukh_ppd_transaction()
Examples
# \donttest{
op <- options(ukhousing.cache_dir = tempdir())
five_year <- ukh_ppd_years(2020:2024, la = "Westminster",
property_type = "flat")
#> ℹ Downloading pp-2020.csv from HM Land Registry...
#> ℹ Downloading pp-2021.csv from HM Land Registry...
#> ℹ Downloading pp-2022.csv from HM Land Registry...
#> ℹ Downloading pp-2023.csv from HM Land Registry...
#> ℹ Loading pp-2024.csv from cache.
nrow(five_year)
#> [1] 0
options(op)
# }