czso_get_table_schema: Get CZSO table schema

View source: R/core.R

czso_get_table_schemaR 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 of name

  • 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(), get_czso_dataset_doc(), get_czso_dataset_metadata(), get_czso_table_schema()

Examples


czso_get_table_schema("110080")


czso documentation built on Sept. 1, 2022, 5:06 p.m.