detect_socialclass_terms: Detect socioeconomic and other social class terms in...

Description Usage Arguments Examples

View source: R/detect_socialclass_terms.R

Description

This function detects social class 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 social class 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 social class terms to be detected.

Examples

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

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

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