Description Usage Arguments See Also Examples
This is convenient wrapper function around textfeatures
methods. It creates summary of text features such as how many hashtags, URLs, periods etc. are present in a verbatim row and appends and return the dataframe with textfeatures.
1 | get_text_features(df, text_col)
|
df |
a dataframe/tibble |
text_col |
factor/character variable that contains verbatim |
1 2 3 4 5 6 7 8 | ## Not run:
df <- data.frame(
id = c(1, 2, 3),
text = c("this is a feedback!\t I am fedup!! https://twitter about #service @yourCare",
"doh", "The following list:\n- one\n- two\n- three\nOkay!?!"))
get_text_features(df,text_col = text)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.