| Title: | Korea Standard Industrial Classification (KSIC) |
|---|---|
| Description: | Provides tools for working with the Korea Standard Industrial Classification (KSIC). Includes datasets for the 9th, 10th, and 11th revisions. Functions include searching codes and names by keyword, converting codes across revisions, validating KSIC codes, and navigating the classification hierarchy (e.g., identifying parent or child categories). Intended for use in statistical analysis, data processing, and research involving South Korea’s industrial classification system. |
| Authors: | Jongjin Yun [aut, cre] (ORCID: <https://orcid.org/0009-0000-0161-2285>) |
| Maintainer: | Jongjin Yun <[email protected]> |
| License: | GPL (>= 3) |
| Version: | 1.0.2 |
| Built: | 2026-05-12 07:01:40 UTC |
| Source: | https://github.com/urbanjj/ksic |
Checks if the input codes are valid for the given KSIC revision (9th, 10th, or 11th).
is_ksic(ksic)is_ksic(ksic)
ksic |
character. A vector of KSIC codes to check. |
A data.frame with the input codes and logical columns (C9, C10, C11) indicating validity.
Returns a data.frame of KSIC data for the specified revision and digit.
ksic(digit = 5, C = NULL, eng_nm = FALSE)ksic(digit = 5, C = NULL, eng_nm = FALSE)
digit |
integer. The digit of the classification to extract (1-5). Default is 5. |
C |
integer. The KSIC revision (9, 10, or 11). If NULL, |
eng_nm |
logical. If |
A data.frame containing the specified KSIC codes and names.
ksic(digit = 1) ksic(digit = 2, C = 10, eng_nm = TRUE)ksic(digit = 1) ksic(digit = 2, C = 10, eng_nm = TRUE)
A concordance table for converting 10th revision KSIC codes to 11th revision KSIC codes.
ksic_10_to_11ksic_10_to_11
A data frame with 5 columns:
10th revision KSIC code.
10th revision KSIC name.
11th revision KSIC code.
11th revision KSIC name.
Additional details about the connection.
ksic_10_to_11ksic_10_to_11
A concordance table for converting 10th revision KSIC codes to 9th revision KSIC codes.
ksic_10_to_9ksic_10_to_9
A data frame with 6 columns:
10th revision KSIC code.
10th revision KSIC name.
9th revision KSIC code.
9th revision KSIC name.
Type of connection.
Additional details about the connection.
ksic_10_to_9ksic_10_to_9
A concordance table for converting 11th revision KSIC codes to 10th revision KSIC codes.
ksic_11_to_10ksic_11_to_10
A data frame with columns for 11th codes, 10th codes, and connection details.
11th revision KSIC code.
11th revision KSIC name.
10th revision KSIC code.
10th revision KSIC name.
Additional details about the connection.
ksic_11_to_10ksic_11_to_10
A concordance table for converting 9th revision KSIC codes to 10th revision KSIC codes.
ksic_9_to_10ksic_9_to_10
A data frame with 6 columns:
9th revision KSIC code.
9th revision KSIC name.
10th revision KSIC code.
10th revision KSIC name.
Type of connection.
Additional details about the connection.
ksic_9_to_10ksic_9_to_10
Converts KSIC codes from one revision to another.
ksic_convert(ksic, from_C, to_C)ksic_convert(ksic, from_C, to_C)
ksic |
character. A vector of 5-digit KSIC codes to convert (e.g., '10111'). |
from_C |
integer. The source KSIC revision (9, 10, or 11). |
to_C |
integer. The target KSIC revision (9, 10, or 11). |
data.frame. A data.frame containing converted KSIC codes and related information. Only convertible codes from the input will be included.
ksic_convert(c("27192", "27195"), from_C = 10, to_C = 11) ksic_convert(c("27192", "27195"), from_C = 11, to_C = 10)ksic_convert(c("27192", "27195"), from_C = 10, to_C = 11) ksic_convert(c("27192", "27195"), from_C = 11, to_C = 10)
Searches for KS.IC information by code.
ksic_find(codes)ksic_find(codes)
codes |
character. A vector of KSIC codes. |
A data.frame of matching KSIC codes and names.
Extracts the parent classification codes corresponding to the input KSIC codes. It can handle a vector containing codes with different numbers of digits.
ksic_group(ksic, digit = 1, C = NULL, name = FALSE)ksic_group(ksic, digit = 1, C = NULL, name = FALSE)
ksic |
character. A vector of KSIC codes to find parent codes for. |
digit |
integer. The digit of the parent classification to extract (1-5). Default is 1. |
C |
integer.
The KSIC revision (9, 10, or 11). If NULL, |
name |
logical.
If |
A character vector of the same length as the input vector, containing parent codes or names. Returns NA if a parent code does not exist.
ksic_group(c("31311", "4631", "25", "A"), digit = 2, name = TRUE) ksic_group("26222", digit = 4)ksic_group(c("31311", "4631", "25", "A"), digit = 2, name = TRUE) ksic_group("26222", digit = 4)
Searches for KSIC codes by a keyword in Korean or English classification names.
If searching with a Korean keyword, the English name (eng_nm) column is excluded from the result.
ksic_search(keyword, C = NULL, ignore.case = TRUE, digit = NULL)ksic_search(keyword, C = NULL, ignore.case = TRUE, digit = NULL)
keyword |
character. keyword to search for. |
C |
integer. The KSIC revision. If NULL, |
ignore.case |
logical. If |
digit |
integer. Can be a vector of (1-5). If NULL, all digits are searched. |
A data.frame of matching KSIC codes and names, or NULL if no match is found.
ksic_search("software", C = 10, ignore.case = FALSE, digit = 5) ksic_search("data|database")ksic_search("software", C = 10, ignore.case = FALSE, digit = 5) ksic_search("data|database")
Extracts the child classification codes corresponding to the input KSIC codes. It can handle a vector containing codes with different numbers of digits.
ksic_sub(ksic, digit = 5, C = NULL, name = FALSE)ksic_sub(ksic, digit = 5, C = NULL, name = FALSE)
ksic |
character. A vector of KSIC codes to find child codes for. |
digit |
integer. The digit of the child classification to extract (1-5). Default is 5. |
C |
integer.
The KSIC revision (9, 10, or 11). If NULL, |
name |
logical.
If |
A list containing vectors of child codes or names for each input code. Returns a list element with NA if no child codes are found.
ksic_sub(c("26", "96", "52636"), digit = 4) ksic_sub("58", digit = 5, name = TRUE)ksic_sub(c("26", "96", "52636"), digit = 4) ksic_sub("58", digit = 5, name = TRUE)
A dataset containing the codes, names, revisions, and digits of the 9th and 10th Korea Standard Industrial Classification (KSIC).
ksicDBksicDB
A data frame with columns:
Classification code.
Classification name.
English classification name.
Digit of the classification (1-5).
KSIC revision (C9 or C10).
ksicDBksicDB
A dataset representing the hierarchical structure of the 9th and 10th KSIC. It includes parent codes for each 5-digit classification.
ksicTreeDBksicTreeDB
A data frame with columns for each classification level (1 to 5 digits) and the KSIC revision.
ksicTreeDBksicTreeDB