Description Usage Arguments Value See Also Examples
Returns data for up to 1,000 users matched by user provided search query.
1 |
q |
Query to be searched, used in filtering relevant tweets to
return from Twitter's REST API. Should be a character string not
to exceed 500 characters maximum. Spaces are assumed to function
like boolean "AND" operators. To search for tweets including one
of multiple possible terms, separate search terms with spaces and
the word "OR". For example, the search |
n |
Numeric, specifying the total number of desired users to return. Defaults to 100. Maximum number of users returned from a single search is 1,000. |
parse |
Logical, indicating whether to return parsed
(data.frames) or nested list object. By default,
|
token |
OAuth token. By default |
verbose |
Logical, indicating whether or not to output processing/retrieval messages. |
Data frame of users returned by query.
https://dev.twitter.com/overview/documentation
Other users: as_screenname
,
lists_subscribers
,
lookup_users
,
tweets_with_users
, users_data
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
## search for 1000 tweets mentioning Hillary Clinton
pc <- search_users(q = "political communication", n = 1000)
## data frame where each observation (row) is a different user
pc
## tweets data also retrieved. can access it via tweets_data()
users_data(hrc)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.