Description Usage Arguments Value Examples
This function is part of the 'term operations' (top) function set
It takes and input string and standardizes / substitutes / replaces punctuations and
characters
1 2 |
string |
A character string |
lower |
Shall the string be transfored to lower case? (TRUE/FALSE) |
punct.stand |
Shall the input string be standardized? (TRUE/FALSE) |
punct.rem |
Shall punctuation be removed? (One of none/partial/complete) |
punct.sub |
Shall certein punctuation characters be replaced? (TRUE/FALSE) |
A charcter string
1 2 3 4 5 6 7 8 | library(tpfuns)
input.string <- "TeSt STring: ( This, ) String [ Is a ] Test & ít-is badlý written"
top_punct(input.string, TRUE, TRUE, punct.rem = "none", FALSE)
top_punct(input.string, TRUE, TRUE, "partial", FALSE)
top_punct(input.string, TRUE, TRUE, "complete", FALSE)
top_punct(input.string, TRUE, TRUE, "partial", TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.