Sector Classification

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(pacta.loanbook)

plot_table <- function(dataset_name) {
  table <- data_dictionary
  table <- dplyr::filter(table, .data[["dataset"]] == dataset_name)
  table <- dplyr::arrange(table, match(column, names(get(dataset_name))))
  table_plot <- gt::gt(dplyr::select(table, -"dataset"))

  table_plot <- 
    gt::cols_width(
      .data = table_plot,
      column ~ gt::px(150),
      typeof ~ gt::px(90)
    )

  table_plot <-
    gt::tab_style(
      data = table_plot,
      style = gt::cell_text(size = "smaller"),
      locations = gt::cells_body(columns = 1:2)
    )

  table_plot <-
    gt::tab_options(
      data = table_plot,
      ihtml.active = TRUE,
      ihtml.use_pagination = FALSE,
      ihtml.use_sorting = TRUE,
      ihtml.use_highlight = TRUE
    )

  gt::fmt_passthrough(table_plot)
}

sector classifications dataset

This dataset contains all currently supported translation keys between the sector classification systems and sector scopes used in the 'PACTA' software.

plot_table("sector_classifications")

The {pacta.loanbook} package provides a sector classification dataset sector_classifications that contains a sector mapping for all supported sector classification systems (currently: r paste0(unique(sector_classifications$code_system), collapse = ", ")).

sector_classifications

GICS classification dataset

This dataset serves as a translation key between the GICS sector-classification system and sector scopes used in the 'PACTA' software.

plot_table("gics_classification")

The {pacta.loanbook} package provides a GICS classification dataset gics_classification.

gics_classification

ISIC Rev 5 classification dataset

This dataset serves as a translation key between the ISIC Rev 5 sector-classification system and sector scopes used in the 'PACTA' software.

plot_table("isic_classification")

The {pacta.loanbook} package provides a ISIC Rev 5 classification dataset isic_classification.

isic_classification

NACE version 2.1 classification dataset

This dataset serves as a translation key between the NACE version 2.1 sector-classification system and sector scopes used in the 'PACTA' software.

plot_table("nace_classification")

The {pacta.loanbook} package provides a NACE version 2.1 classification dataset nace_classification.

nace_classification

NAICS (North American Industry Classification System) classification dataset

This dataset serves as a translation key between the NAICS sector-classification system and sector scopes used in the 'PACTA' software.

plot_table("naics_classification")

The {pacta.loanbook} package provides a NAICS classification dataset naics_classification.

naics_classification

PSIC classification dataset

This dataset serves as a translation key between the PSIC sector-classification system and sector scopes used in the 'PACTA' software.

plot_table("psic_classification")

The {pacta.loanbook} package provides a PSIC classification dataset psic_classification.

psic_classification

SIC classification dataset

This dataset serves as a translation key between the SIC sector-classification system and sector scopes used in the 'PACTA' software.

plot_table("sic_classification")

The {pacta.loanbook} package provides a SIC classification dataset sic_classification.

sic_classification


Try the pacta.loanbook package in your browser

Any scripts or data that you put into this service are public.

pacta.loanbook documentation built on April 3, 2025, 10:37 p.m.