Learn R Programming

skillsengineeR (version 0.2.0)

skills: Pull from Skills API endpoint.

Description

Pull from Skills API endpoint.

Usage

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

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

Run the code above in your browser using DataLab