Retrieves metadata for a table using the PxWebApi v2 endpoint and returns it
as an R object via jsonlite::read_json().
Usage
meta_data(url_or_tableid, url_type = "ssb")
Value
A list containing table metadata read by jsonlite::read_json() after internal URL adjustments via ensure_json_stat2().
The data URL is stored in the comment attribute of the returned object.
Arguments
url_or_tableid
Either a numeric table id or a PxWebApi v2 URL to data.
When a data URL is supplied, it is internally converted to a metadata URL.
url_type
Currently two possibilities: "ssb" (Norwegian) or "ssb_en" (English).