Description Usage Arguments Value Future Examples
from a text returns another text after some
transformations.
Not intended for the standard user.
1 2 3 4 5 |
text3preparation(text,preparation="rbR",
content=c(1,length(text)),
ccom="#",
llength=50)
|
text |
A character vector containing the text to prepare. |
preparation |
A character(1) whose characters indicates the actions to perform (in this order): |
content |
Indicates which component of text to prepare. Usually numeric(2) to indicate the interval of lines to consider. when numeric(1), only this line. When 0 or diff(content)<0 character(0) is returned. |
ccom |
A character(1) indicating which character(s) at the beginning of lines must possibly be removed (the character(s), not the complete line). |
llength |
Maximum number of characters for a line (except when it comprises only one word). |
The transformed text, that is a character.
Other functionalities could be added.
1 2 3 4 5 6 7 8 |
text3preparation(rbsa0$text2$v[1:3],preparation="j",llength=10)
uu <- c("Il etait une fois un petit et rouge chaperon",
"qui voulait aller voir sa mere-grand");
text3preparation(uu,"j",llength=20);
text3preparation(uu,"j",llength=80);
text3preparation( c(" Je veux voir "," et re-voir "),"rbBc")
text3preparation(c("# Je veux voir "," et re-voir "),"rbBc")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.