This function scrapes Nationwide's House Price Index webpage and downloads data in tidy format. Available datasets are given an `id`. All available `id` and short descriptions can be viewed via `?datasets`. For more information the user can browse the source webpage through ntwd_browse.

ntwd_get(id, verbose = TRUE)

Arguments

id

which `id`to fetch. See `?ntwd_dataset` for a full list.

verbose

whether to print the url of the data.

Value

Returns a tibble.

Examples

# \donttest{ ntwd_get("monthly")
#> # A tibble: 2,202 × 3 #> Date type value #> <date> <chr> <dbl> #> 1 1991-01-01 Average House Price 53052. #> 2 1991-02-01 Average House Price 53497. #> 3 1991-03-01 Average House Price 52893. #> 4 1991-04-01 Average House Price 53677. #> 5 1991-05-01 Average House Price 54386. #> 6 1991-06-01 Average House Price 55107. #> 7 1991-07-01 Average House Price 54541. #> 8 1991-08-01 Average House Price 54041. #> 9 1991-09-01 Average House Price 53259. #> 10 1991-10-01 Average House Price 53467. #> # … with 2,192 more rows
# For a list of datasets ?ntwd_datasets # }