Description Usage Arguments Author(s) Examples
Extract all users and relevant data, including retweeters, quoters, repliers, and mentions.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | extract_users(
tweet_df,
summarize = TRUE,
split = FALSE,
as_tibble = tweetio_as_tibble(),
...
)
## S3 method for class 'data.frame'
extract_users(
tweet_df,
summarize = TRUE,
split = FALSE,
as_tibble = tweetio_as_tibble(),
...
)
## S3 method for class 'data.table'
extract_users(
tweet_df,
summarize = TRUE,
split = FALSE,
as_tibble = tweetio_as_tibble(),
...
)
|
tweet_df |
A data frame of tweets, as obtained by |
summarize |
|
split |
|
as_tibble |
|
... |
Arguments passed to or from other methods. |
Brendan Knapp brendan.g.knapp@nps.edu
1 2 3 4 5 6 7 8 9 10 11 | path_to_tweet_file <- example_tweet_file()
tweet_df <- read_tweets(path_to_tweet_file)
extract_users(tweet_df, as_tibble = TRUE)
extract_users(tweet_df, summarize = FALSE, as_tibble = TRUE)
split_users <- extract_users(tweet_df, summarize = FALSE, split = TRUE, as_tibble = TRUE)
# first 3 users with more than 5 observations.
split_users[vapply(split_users, function(.x) nrow(.x) > 5, logical(1L))][1:3]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.