Learn R Programming

regcensus (version 1.0.1)

list_industries: list_industries

Description

Fetches the names of industries and associated IDs

Usage

list_industries(
  keyword = NULL,
  label_level = 3,
  label_source = "NAICS",
  only_id = FALSE,
  reverse = FALSE
)

Value

Returns dictionary containing names of industries and associated IDs

Arguments

keyword

search for keyword in agency name

label_level

NAICS level (2 to 6-digit), default value of 3

label_source

classification standard (NAICS, BEA, SOC), default value of "NAICS"

only_id

uses the NAICS code instead of name as key of dictionary, default value of FALSE

reverse

reverses the key-value mapping, default value of FALSE

Examples

Run this code
if (FALSE) list_industries(only_id = TRUE, reverse = FALSE)

Run the code above in your browser using DataLab