competencies_flatten: Pull from Competencies Flatten API endpoint.

Description Usage Arguments Value Examples

View source: R/post_functions.R

Description

Pull from Competencies Flatten API endpoint.

Usage

1
2
3
4
5
6
7
8
competencies_flatten(
  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 11; flattened competency data relevant to query

Examples

1
2
3
4
5
6
## Not run: 
tkn <- get_access_token(client_id, client_secret)
txt <- "i am a welder and used welding equipment and acetylene torches"
c <- competencies_flatten(text = txt, token = tkn, bias = 0.4)

## End(Not run)

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