czso_get_table_schema {czso} | R Documentation |
Get CZSO table schema
Description
Retrieves and parses the schema for the table identified by dataset_id and resource_num.
Usage
czso_get_table_schema(dataset_id, resource_num = 1)
Arguments
dataset_id |
Dataset ID |
resource_num |
Resource number, typically 1 in CZSO (the default) |
Details
Currently only handles JSON schema files for CSV files. If the schema is a different format, an error is returned pointing the user to the URL of the file.
Value
a tibble with a description of the table columns, with the following items:
-
name
: the column name. -
titles
: usually the duplicate ofname
-
dc:description
: a Czech-language description of the column -
required
: whether the column is required -
datatatype
: the data type of the column; either "number" or "string"
See Also
Other Additional tools:
czso_get_dataset_doc()
,
czso_get_dataset_metadata()
Examples
czso_get_table_schema("110080")
[Package czso version 0.4.1 Index]