skills: Pull from Skills API endpoint.

Description Usage Arguments Value Examples

View source: R/post_functions.R

Description

Pull from Skills API endpoint.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
skills(
  text,
  depth = NULL,
  cutoff = NULL,
  socs = NULL,
  similarity_scoring = NULL,
  token,
  handle_status = "warn",
  response_raw = FALSE
)

Arguments

text

Sentence or text entry to pull competencies for

depth

Numeric vlaue specifying algorithm depth (Optional)

cutoff

Numeric cutoff value (Optional)

socs

Character vector of SOCs to fine-tune search (Optional)

similarity_scoring

String specifying true or false Whether or not to use similarity scoring. (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; skills data relevant to query

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
tkn <- get_access_token(client_id, client_secret)
txt <- "Provide substance abuse education and counseling for at-risk individuals."
s <- skills(text = txt,
            depth = 20,
            cutoff = 5,
            token = tkn,
            similarity_scoring = "true")

## End(Not run)

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