clean_text: Clean '"character"' string of punctuation, commonly occuring...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Clean "character" string of punctuation, commonly occuring English words, and numeric digits

Usage

1
clean_text(x, d)

Arguments

x

a character string

d

dictionary of commonly used words in the English language (e.g., data("common_word_dictionary"))

Value

a vector of "character" strings that have been striped of punctuation, commonly occuring English words, and numeric digits

Examples

1
2
3
x <- "Hello, my name is Shan Sabri!   less common words are: cells, differentation, reprogramming, 1 42, 101"
clean_text(x, d = data("common_word_dictionary"))
# [1] "shan"           "sabri"          "cells"          "differentation" "reprogramming"

ShanSabri/PubMedScrapeR documentation built on Oct. 30, 2019, 11:53 p.m.