skills_multi_match: Pull from Skills Multi-Match API endpoint.

Description Usage Arguments Value Examples

View source: R/post_functions.R

Description

Pull from Skills Multi-Match API endpoint.

Usage

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

Arguments

sentences

Character vector of sentences used to pull competencies

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 3; skills data relevant to query

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
tkn <- get_access_token(client_id, client_secret)
txts <- c("Weld things together", "Use an acetylene torch", "Hammer nails into wood")
s <- skills_multi_match(sentences = txts,
                        depth = 20,
                        cutoff = 5,
                        token = tkn,
                        socs = c("17-2141.00",
                                 "49-9041.00",
                                 "49-1011.00",
                                 "49-9071.00"))

## End(Not run)

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