Learn R Programming

skillsengineeR (version 0.2.0)

skills_multi_match: Pull from Skills Multi-Match API endpoint.

Description

Pull from Skills Multi-Match API endpoint.

Usage

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

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

Run the code above in your browser using DataLab