get_classifications: Get a tidy data frame of classifications of all functions...

Description Usage Arguments Value Examples

View source: R/get_classifications.R

Description

Get a tidy data frame of classifications of all functions used in your analysis

Usage

1
get_classifications(lexicon = NULL, include_duplicates = TRUE)

Arguments

lexicon

Character. The classification lexicon to retrieve. Either "crowdsource" or "leeklab". If NULL (default), will return all lexicons.

include_duplicates

Logical. Indicates whether to include all functions and classifications along with their score (default, TRUE) - this may result in multiple lines (with multiple classifications) for a single function. If FALSE, the most prevalent classification will be selected.

Value

A tbl_df with columns:

If include_duplicates = TRUE, will include a column:

If lexicon is NULL, will include a column:

Examples

1
2
3
4
5
6
7
8
# Get a data frame of all classifications
get_classifications()

# Get a data frame of the most prevalent classifications
get_classifications(include_duplicates = FALSE)

# Get a data frame of only `leeklab` classifications
get_classifications("leeklab")

tidycode documentation built on Dec. 11, 2019, 1:08 a.m.