call_sitc_hmrc_rts_with_product_code: HMRC query base on code and SITC

Description Usage Arguments Examples

View source: R/HMRC_API.R

Description

Querying the HMRC RTS data using SITC nomenclature. The arguments are not case-sensitive the API itself is still in BETA thus we continue reporting issues.

Usage

1
2
3
4
5
6
7
call_sitc_hmrc_rts_with_product_code(
  time_window = NULL,
  filter_for_code = NULL,
  country_filter = NULL,
  flow_filter = NULL,
  groupby = NULL
)

Arguments

time_window

like "MonthId gt 202000 and MonthId lt 202100" which is everything from 2020 or "MonthId gt 201908 and MonthId lt 202009" last 12 month up to end of August

filter_for_code

A HS or CN commodity code e.g. "00" or "001300"

country_filter

use ISO-2-alpha code e.g. "FR" check HMRC for inconsistencies such as former Yugoslavian countries.

flow_filter

choose from "export" "import" or "EU"

groupby

takes a vector of keywords the full range is c("country", "year", "month", "SITC1", "SITC2", "SITC3", "SITC4")

Examples

1
2
 call_sitc_hmrc_rts_with_product_code(filter_for_code = "02", time_window = "MonthId eq 201901", groupby = c("sitc4", "COUNTRY"))
 call_sitc_hmrc_rts_with_product_code(time_window = "MonthId gt 201906 and MonthId lt 202008", country_filter = "FR", flow_filter = "EXport", groupby = c("SITc2", "COUNTRY"))

FruzsiG/hmrcwrappER documentation built on Dec. 17, 2021, 9:22 p.m.