detect_equity_terms: Detect equity-related terms in unstructured text data

Description Usage Arguments Examples

View source: R/detect_equity_terms.R

Description

This function detects equity-related terms in unstructured text data. The input will be a character vector of text data such as a biomedical abstract, a Twitter bio, or a chapter from a novel. The output column will provide the number of equity-related terms detected in the entry.

Usage

1

Arguments

data

A data frame or data frame extension (e.g. a tibble).

id

A numeric or character vector unique to each entry.

input

Character vector of text data for equity-related terms to be detected.

Examples

1
2
3
4
5
6
7
library(tidyverse)
library(diverstidy)
data(pubmed_data)

detected_terms <- pubmed_data %>%
  detect_equity_terms(fk_pmid, abstract)
  

brandonleekramer/diverstidy documentation built on Dec. 19, 2021, 11:42 a.m.