extract_punct: extract punctuation

Description Usage Arguments Examples

Description

Takes a string and returns a vector of every punctuation mark present in the string. The punctuation marks returned are: periods, commas, semicolons, question marks, exclamation points, quotation marks (both forward and backward), ellipses and em-dashes.

Usage

1

Arguments

text

Character vector containing all the lines in a given text

Examples

1
2
sampleText <- gardenParty[10]
extract_punct(text = sampleText)

Amherst-Statistics/katherinemansfieldr documentation built on May 5, 2019, 4:55 a.m.