clamour_load_tweets: Load tweets

Description Usage Arguments Details Value

View source: R/load-tweets.R

Description

Load tweets for a clamour analysis

Usage

1
2
3
4
5
6
clamour_load_tweets(
  query,
  cache_file = NULL,
  timezone = Sys.timezone(),
  fixed = FALSE
)

Arguments

query

Query string to use for collecting new tweets.

cache_file

Path to an .Rds file to store cached tweets.

timezone

Time zone associated with tweets.

fixed

If TRUE only read tweets from cache and do not download new tweets.

Details

If a cache file exists tweets will first be read from here. New tweets will also be downloaded if fixed = FALSE. Cached and new tweets are combined and only the most recent version of each tweet is kept. Additional datetime, date and hour fields are created using the supplied timezone.

Value

tibble containing tweets


lazappi/clamour documentation built on Sept. 8, 2020, 4:02 p.m.