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

Description Usage Arguments Value Examples

View source: R/get_functions.R

Description

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

Usage

1
2
3
4
5
6
7
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

1
2
3
4
5
6
7
## 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)

## End(Not run)

skillsengineeR documentation built on March 4, 2021, 5:07 p.m.