tweet_corpus_chunck: Submit a search query by chuncks

Description Usage Arguments Value Examples

View source: R/TwitterAPI.R

Description

Submit a search query by chuncks

Usage

1
2
tweet_corpus_chunck(search = "aud+usd", n = 50000, chunck_size = 7,
  total_size = 15, until = Sys.Date(), sys_sleep = 0)

Arguments

search

Search query to issue to twitter. Use "+" to separate query terms.

n

The maximum number of tweets to return

chunck_size

number of days for each iteration

total_size

total number of days to retrieve

until

If not NULL, restricts tweets to those up until the given date. Date is to be formatted as YYYY-MM-DD

sys_sleep

system sleep (sec) to prevent limits rate of API

Value

A list containing a vector of all doc and a data.frame of all tweets

Examples

1
tweets <- tweet_corpus_chunck(search = "aud+usd", n = 50000, chunck_size = 7, total_size = 15, until = Sys.Date())

ivanliu1989/RQuantAPI documentation built on Sept. 13, 2019, 11:54 a.m.