Description Usage Arguments Value Examples
Strip text of unwanted characters.
strip.character
- factor method for strip
.
strip.factor
- factor method for strip
.
strip.default
- factor method for strip
.
strip.list
- factor method for strip
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | strip(x, char.keep = "~~", digit.remove = TRUE, apostrophe.remove = FALSE,
lower.case = TRUE)
## S3 method for class 'character'
strip(x, char.keep = "~~", digit.remove = TRUE,
apostrophe.remove = FALSE, lower.case = TRUE)
## S3 method for class 'factor'
strip(x, char.keep = "~~", digit.remove = TRUE,
apostrophe.remove = TRUE, lower.case = TRUE)
## Default S3 method:
strip(x, char.keep = "~~", digit.remove = TRUE,
apostrophe.remove = TRUE, lower.case = TRUE)
## S3 method for class 'list'
strip(x, char.keep = "~~", digit.remove = TRUE,
apostrophe.remove = TRUE, lower.case = TRUE)
|
x |
The text variable. |
char.keep |
A character vector of symbols (i.e., punctuation) that
|
digit.remove |
logical. If |
apostrophe.remove |
logical. If |
lower.case |
logical. If |
Returns a vector of text that has been stripped of unwanted characters.
1 2 3 4 5 6 7 |
[1] "Computer is fun. Not too fun."
[2] "No it's not, it's dumb."
[3] "What should we do?"
[4] "You liar, it stinks!"
[5] "I am telling the truth!"
[6] "How can we be certain?"
[7] "There is no way."
[8] "I distrust you."
[9] "What are you talking about?"
[10] "Shall we move on? Good then."
[11] "I'm hungry. Let's eat. You already?"
[1] "computer is fun not too fun" "no it's not it's dumb"
[3] "what should we do" "you liar it stinks"
[5] "i am telling the truth" "how can we be certain"
[7] "there is no way" "i distrust you"
[9] "what are you talking about" "shall we move on good then"
[11] "i'm hungry let's eat you already"
[1] "computer is fun not too fun" "no its not its dumb"
[3] "what should we do" "you liar it stinks"
[5] "i am telling the truth" "how can we be certain"
[7] "there is no way" "i distrust you"
[9] "what are you talking about" "shall we move on good then"
[11] "im hungry lets eat you already"
[1] "computer is fun. not too fun." "no it's not it's dumb."
[3] "what should we do?" "you liar it stinks"
[5] "i am telling the truth" "how can we be certain?"
[7] "there is no way." "i distrust you."
[9] "what are you talking about?" "shall we move on? good then."
[11] "i'm hungry. let's eat. you already?"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.