# NOT RUN {
## SITC4 to NAICS
# one input: one-to-one match
concord_sitc_naics(sourcevar = "22240",
origin = "SITC4", destination = "NAICS",
dest.digit = 6, all = FALSE)
concord_sitc_naics(sourcevar = "22240",
origin = "SITC4", destination = "NAICS",
dest.digit = 6, all = TRUE)
# two inputs: multiple-to-one match
concord_sitc_naics(sourcevar = c("22240", "04110"),
origin = "SITC4", destination = "NAICS",
dest.digit = 6, all = FALSE)
concord_sitc_naics(sourcevar = c("22240", "04110"),
origin = "SITC4", destination = "NAICS",
dest.digit = 6, all = TRUE)
# two inputs: repeated
concord_sitc_naics(sourcevar = c("22240", "22240"),
origin = "SITC4", destination = "NAICS",
dest.digit = 6, all = FALSE)
# one to multiple matches
concord_sitc_naics(sourcevar = c("22240", "00190"),
origin = "SITC4", destination = "NAICS",
dest.digit = 6, all = TRUE)
# if no match, will return NA and give warning message
concord_sitc_naics(sourcevar = c("22240", "00160"),
origin = "SITC4", destination = "NAICS",
dest.digit = 6, all = FALSE)
# 4-digit inputs
concord_sitc_naics(sourcevar = c("2224", "0019"),
origin = "SITC4", destination = "NAICS",
dest.digit = 6, all = TRUE)
# 4-digit outputs
concord_sitc_naics(sourcevar = c("22240", "00190"),
origin = "SITC4", destination = "NAICS",
dest.digit = 6, all = TRUE)
## NAICS to SITC4
concord_sitc_naics(sourcevar = c("111120", "326199"),
origin = "NAICS", destination = "SITC4",
dest.digit = 4, all = TRUE)
# }
Run the code above in your browser using DataLab