Learn R Programming

skillsengineeR (version 0.2.0)

competencies: Pull from Competencies API endpoint.

Description

Pull from Competencies API endpoint.

Usage

competencies(
  text,
  token,
  bias = NULL,
  exclude = NULL,
  handle_status = "warn",
  response_raw = FALSE
)

Arguments

text

Sentence or text to pull relevant competencies for

token

Authorization token obtained from get_access_token

bias

Numeric value defining level of bias (Optional)

exclude

Character vector of result elements to omit (Optional)

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 9; competency data relevant to query

Examples

Run this code
# NOT RUN {
tkn <- get_access_token(client_id, client_secret)
txt <- "i am a welder and used welding equipment and acetylene torches"
c <- competencies(text = txt, token = tkn, bias = 0.4)
# }

Run the code above in your browser using DataLab