Add columns to rtweet data.frame for 'kind' data.

add_tweet_kind_cols(data = NULL)

Arguments

data

data.frame (created using rtweet package).

Value

data.frame.

Details

The columns added include 'hashtag', 'link', 'rt', 'quote', and 'reply', all of which are logicals. A 'type' column is also added--it is a factored version of 'rt', 'quote', and 'reply'.

See also

https://juliasilge.com/blog/ten-thousand-data/.