dropStop: dropStop is a utility for removing certain words from text...

View source: R/dropStop.R

dropStopR Documentation

dropStop is a utility for removing certain words from text data

Description

dropStop is a utility for removing certain words from text data

Usage

dropStop(x, drop, lower = TRUE, splitby = " ")

Arguments

x

character vector of strings to be cleaned

drop

character vector of words to scrub

lower

logical, if TRUE, x converted with tolower

splitby

character, used with strsplit to tokenize x

Value

a list with one element per input string, split by " ", with elements in drop removed

Examples

data(minicorpus)
minicorpus[1:3]
dropStop(minicorpus)[1:3]

vjcitn/ontoProc documentation built on March 23, 2024, 7:23 a.m.