tweets.df.prototype: Tweets data frame prototype

tweets.df.prototypeR Documentation

Tweets data frame prototype

Description

A prototypical tweets data frame as expected, for example, by creat_tweet_features.

Usage

tweets.df.prototype

Format

A tibble with columns

status_id

("character" or "integer") tweet status ID

created_at

("POSIXt", "integer", or "character") tweet creation time

text

("character") tweet text

display_text_width

("integer") the character width of a tweet's text on display

lang

("character") tweet language

reply_to_status_id

("character", "integer") status ID of tweet the current entity replied to, if applicable (otherwise NA)

is_retweet

("logical") is a retweet?

is_quote

("logical") is a quote?

hashtags

("list") list-column of character vectors of hashtags contained in the tweet

symbols

("list") list-column of character vectors of symbols contained in the tweet

urls_expanded_url

("list") list-column of character vectors of expanded (not short) URLs of hyperlinks contained in the tweet

media_expanded_url

("list") list-column of character vectors of expanded (not short) URLs of media contained in the tweet

ext_media_expanded_url

("list") list-column of character vectors of expanded (not short) URLs of media attached to the tweet

media_type

("list") list-column of character vectors of media types ("photo", "video" or NA) attached to the tweet

favorite_count

("integer") number of times tweet was marked as favorite

retweet_count

("integer") number of times tweet was retweeted

quote_count

("integer") number of times tweet was quoted

reply_count

("integer") number of times users replied to the tweet

Note

These are the naming and typing conventions of the rtweet package https://rtweet.info/. For a full description of what these fields/columns record, see https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/intro-to-tweet-json


haukelicht/politicaltweets documentation built on July 3, 2023, 4:11 a.m.