Description Usage Arguments Examples
View source: R/detect_religious_terms.R
This function detects religious 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 religious terms detected in the entry.
1 | detect_religious_terms(data, id, input)
|
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 religious terms to be detected. |
1 2 3 4 5 6 7 | library(tidyverse)
library(diverstidy)
data(pubmed_data)
detected_terms <- pubmed_data %>%
detect_religious_terms(fk_pmid, abstract)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.