Learn R Programming

skillsengineeR (version 0.2.0)

occupations_soc_codes: Provide economic data related to user-provided SOC codes (by state)

Description

Provide economic data related to user-provided SOC codes (by state)

Usage

occupations_soc_codes(
  token,
  soc_codes,
  state_code = NULL,
  handle_status = "warn",
  response_raw = FALSE
)

Arguments

token

Authorization token obtained from get_access_token

soc_codes

Character vector of SOC codes to extract data for

state_code

State code string to get regional results (Optional)

handle_status

How to handle bad HTTP status. Set as either warn or error

response_raw

Logical value whether to return the API response as raw, unparsed text. Defaults to FALSE

Value

A data.frame; occupations relevant to query

Examples

Run this code
# NOT RUN {
tkn <- get_access_token(client_id, client_secret)
o <- occupations_soc_codes(soc_codes = c("13-2011","15-2031","15-2011"),
                           state_code = "TX",
                           token = tkn)
# }

Run the code above in your browser using DataLab