Description Usage Arguments Details Value See Also Examples
This function uses the Google+ API to search for a text string in profiles. Optionally, profiles can be restricted to a certain language.
1 | searchProfile(q, language = NULL, results = 1, nextToken = NULL, cr = 1)
|
q |
The query string to search. The string is URL encoded automatically. |
language |
A language code. See https://developers.google.com/+/api/search#available-languages. |
results |
The approximate number of results that will be retrieved from Google+. |
nextToken,cr |
These are used internally to retrieve additional pages of answers from the Google+ API. Users won't need to set these arguments. |
The number of rows of the data frame returned is somewhat
ambiguous. Specifying the results
argument will try
to get that many results. But there may be less (because
Google could not find more) or more (because Google is
organizing results on pages and it would be a waste to
discard them automatically). If you really depend on
getting not more rows than you expected, use standard
selection (i.e. [
) to trim the results.
A data frame with the user ID, display names and profile type of the profiles that met the search criteria.
Google+ API documentation: https://developers.google.com/+/api/latest/people/search.
1 2 3 4 | ## Not run:
searchProfile("cats")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.