remove_stops: remove a list of words from a document (case- and...

Description Usage Arguments Value Examples

Description

remove a list of words from a document (case- and punctuation-sensitive) (to deal with punctuation etc., call 'scrub_doc()' on the 'doc' arg before)

Usage

1
remove_stops(doc, stops)

Arguments

doc
stops

Value

the document, with all elements of 'stops' removed

Examples

1
remove_stops(doc="hi i am tim, tim like goat", stops=c("is", "tim"))

lefft/lefftpack documentation built on May 8, 2019, 1:13 p.m.