get_statisticalresources_queries_agency_resource: Get queries (agencyID / resourceID)

Description Usage Arguments Examples

View source: R/statistical-resources-queries.R

Description

This function allows to obtain final data of a statistical query with a certain identifier and that also maintains a certain organization.

Usage

1
2
3
4
5
6
7
get_statisticalresources_queries_agency_resource(
  agencyid,
  resourceid,
  fields = "",
  lang = "es",
  as_dataframe = FALSE
)

Arguments

agencyid

(string): Identifier of the maintainer organization of the resource. A possible value is “ISTAC“.

resourceid

(string): Resource identifier. A possible value is “C00010A_000002“.

fields

(string): Allows you to customize the response by excluding fields from it. - The possible values are “-metadata“ and “-data“.

lang

(string): Language in which you want to get the answer.

as_dataframe

(bool): If True, this function returns a namedtuple with: - dataframe: pandas dataframe built from API response. - codelists: mapping between codes and representations for each column.

Examples

1
2
3
4
get_statisticalresources_queries_agency_resource(
agencyid="ISTAC",
resourceid="C00017A_000001"
)

eDatos/istacr documentation built on Nov. 24, 2021, 10:39 a.m.