searchTwitter(searchString, n=25, lang=NULL, since=NULL, until=NULL,
locale=NULL, geocode=NULL, sinceID=NULL, ...)
Rtweets(n=25, lang=NULL, since=NULL, ...)
NULL
, restricts tweets to the given
language, given by an ISO 639-1 codeNULL
, restricts tweets to those since the
given date. Date is to be formatted as YYYY-MM-DDNULL
, restricts tweets to those up until the
given date. Date is to be formatted as YYYY-MM-DDNULL
, will set the locale for the search.
As of 03/06/11 only ja
is effective, as per the Twitter APINULL
, returns tweets by users located
within a given radius of the given latitude/longitude. See
Details
below for more informationNULL
, returns tweets with IDs greater
(ie newer) than the specified IDgetURL
n
argument. Authorized tweets are public tweets as well as those
protected tweets that are available to the user after authenticating
via registerTwitterOAuth
. For the geocode
argument, the values are given in the format
latitude,longitude,radius
, where the radius can have either
mi
(miles) or km
(kilometers) as a unit. For example
geocode='37.781157,-122.39720,1mi'
.
For the sinceID
argument, if the requested ID value is older
than the oldest available tweets, the API will return tweets starting
from the oldest ID available.
The Rtweets
function is a wrapper around searchTwitter
which hardcodes in a search for #rstats}.
status
objectsstatus
, registerTwitterOAuth
## Search between two dates searchTwitter('charlie sheen', since='2011-03-01', until='2011-03-02')
## geocoded results
searchTwitter('patriots', geocode='42.375,-71.1061111,10mi')