Description Usage Arguments Note Examples
Matches a vector of target words/punctuation marks to a larger vector of words/punctuation marks and counts how many times that particular word or punctuation marks occurs in the larger string. Returns a data table with the matched words or punctuation marks with their number the occurrances in the larger string.
1 |
characters |
Large vector of words/punctuation marks to be matched with a smaller list of desired words/characters. |
char.list |
Vector of target words/punctuation marks to be matched with the larger vector of words/characters |
punctuation |
Boolean that determines whether to convert punctuation marks into words in final output table |
the accepted punctuation marks are commas, periods, semicolons, question marks exclamation points, quotation marks (forward and backward), ellipses and em-dashes.
to match quotation marks, use Unicode characters for right (u201D) and left (u201C) quotation marks.
1 2 3 4 5 | char <- extract_token(gardenParty)
charfreq(char, c("she", "he", "them"), punctuation = FALSE)
char <- extract_punct(gardenParty)
charfreq(char, c(".", "...", "?"), punctuation = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.