returnRegExp | R Documentation |
This function creates a query element to indicate a certain pattern of a variable
returnRegExp(utd_api_key = "", table_name = "", pattern = "", field = "")
utd_api_key |
An API key provided by a UTD server manager |
table_name |
A name of a data table. Input strings are NOT case-sensitive. |
pattern |
A pattern or a feature of a specified variable |
field |
A field (variable) of a data table |
A list of the query element of a certain pattern of a particular variable in a data table
Please use this function only with the field that is not used in the other query element function. For instance; if you subset the data with a certain country, use the function, 'returnCountries()'.
## Not run: # to get all source actors related to governments in ICEWS reg <- returnRegExp(utd_api_key, "icews","GOV","Source Name") # to subset the cline_phoenix_nyt data by year == 2001 nytQuery <- returnRegExp(utd_api_key, 'cline_phoenix_nyt', '2001', 'year') myNYTdata <- sendQuery(utd_api_key, 'cline_phoenix_nyt', nytQuery, citation = F) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.