extract_statuses: Extract All Statuses

Description Usage Arguments Author(s) Examples

View source: R/statuses.R

Description

Build a data frame of statuses where each is summarized in a single row. The values of each column hold the most recent non-NA/non-empty value.

Usage

1
2
3
4
5
6
7
extract_statuses(tweet_df, as_tibble = tweetio_as_tibble(), ...)

## S3 method for class 'data.frame'
extract_statuses(tweet_df, as_tibble = tweetio_as_tibble(), ...)

## S3 method for class 'data.table'
extract_statuses(tweet_df, as_tibble = tweetio_as_tibble(), ...)

Arguments

tweet_df

A data frame of tweets, as obtained by read_tweets() or one of {rtweet}'s collection functions, e.g. rtweet::search_tweets().

as_tibble

<logical>, Default: tweetio_as_tibble(). Whether a tibble::tibble() should be returned. Ignored if the {tibble} package is not installed.

...

Arguments passed to or from other methods.

Author(s)

Brendan Knapp brendan.g.knapp@nps.edu

Examples

1
2
3
4
path_to_tweet_file <- example_tweet_file()
tweet_df <- read_tweets(path_to_tweet_file)

extract_statuses(tweet_df, as_tibble = TRUE) 

knapply/tweetio documentation built on Dec. 22, 2020, 7:15 p.m.