Learn R Programming

skillsengineeR (version 0.2.0)

topics_related: Pull from Related Topics API endpoint.

Description

Pull from Related Topics API endpoint.

Usage

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

Run this code
# 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)
# }

Run the code above in your browser using DataLab