topics_related: Pull from Related Topics API endpoint.

Description Usage Arguments Value Examples

View source: R/post_functions.R

Description

Pull from Related Topics API endpoint.

Usage

1
2
3
4
5
6
7
topics_related(
  texts,
  socs = NULL,
  token,
  handle_status = "warn",
  response_raw = FALSE
)

Arguments

texts

Character Vector of sentences used to pull related topics

socs

Character vector of SOC codes to fine-tune related topics (Optional)

token

Authorization token obtained from get_access_token

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 list of length 2; topic modeling data relevant to query

Examples

1
2
3
4
5
6
7
## Not run: 
tkn <- get_access_token(client_id, client_secret)
t <- topics_related(texts = c("ms word", "access", "dexterity"),
                    socs = "41-3041.00",
                    token = tkn)

## End(Not run)

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