get_text_features: Get verbatim text feature

Description Usage Arguments See Also Examples

Description

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.

Usage

1
get_text_features(df, text_col)

Arguments

df

a dataframe/tibble

text_col

factor/character variable that contains verbatim

See Also

textfeatures

Examples

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)

fahadshery/textsummary documentation built on May 6, 2019, 7:02 p.m.