remove_standalone_digits: Strip standalone digits from '"character"' string

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Strip standalone digits from "character" string

Usage

1

Arguments

x

a vector of character string

Value

a vector of "character" strings excluding standalong numeric digits

Examples

1
2
3
4
5
6
7
data("common_word_dictionary")
x <- "Hello, my name is Shan Sabri!   less common words are: cells, differentation, reprogramming, 1 42, 101"
x <- strip_punctuation(x)
dictionary <- as.vector(dictionary$V1[1:5000])
x <- filter_text(x, d = dictionary)
remove_standalone_digits(x)
# [1] "shan"           "sabri"          "cells"          "differentation" "reprogramming"

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