ts_hsfcl_nolinks_statistic: Extracts time series of not mapped HS codes number

View source: R/ts_hsfcl_nolinks_statistic.R

ts_hsfcl_nolinks_statisticR Documentation

Description

Extracts time series of not mapped HS codes number

Usage

ts_hsfcl_nolinks_statistic(collection_path = NULL, prefix = NULL)

Arguments

collection_path

String with path where single-year report directories are stored.

prefix

String with report directory name prefix without trailing underscore. By default NULL.

Value

Data frame

Examples

## Not run: 
library(ggplot2)
library(dygraph)
library(dplyr)

ts1 <- ts_hsfcl_nolinks_statistic("/mnt/storage/sws_share/chr", "complete_tf_cpc")

ts1 %>%
  group_by(year) %>%
  dplyr::summarize(total_nolinks = sum(nolinks)) %>%
  ungroup() %>%
  ggplot(aes(year, total_nolinks)) +
  geom_bar(stat = "identity")

ts1 %>%
  group_by(year) %>%
  dplyr::summarize(total_nolinks = sum(nolinks)) %>%
  ungroup() %>%
  dygraph(
    ylab = "Total number of unmapped HS (duplicates across years possible)",
    main = "Unmapped HS codes (Tariff line and Eurostat)")

## End(Not run)

SWS-Methodology/faoswsTrade documentation built on June 1, 2024, 7:35 p.m.