SearchQuery-class {MacrobondAPI} | R Documentation |
Use this class to set up a request for searching in the database.
Objects are created by calling CreateSearchQuery
.
signature(object = "SearchQuery")
: Get if the search query will include discontinued entities.
signature(object = "SearchQuery", include = "logical")
: Set if the search query will include discontinued entities.
signature(object = "SearchQuery")
: Get the free text search text.
signature(object = "SearchQuery", text = "character")
: Set the free text search text.
signature(object = "SearchQuery", entities = "character")
: Set the entitity type to include in the search.
signature(object = "SearchQuery", entities = "list")
: Set the entitity types to include in the search.
signature(m = "SearchQuery", attribute = "character")
: Add an attribute to be included in the search.
signature(m = "SearchQuery", attribute = "list")
: Add multiple attributes to be included in the search.
signature(m = "SearchQuery", attribute = "character", include = "logical")
: Add an attribute to be included or excluded in the search.
signature(m = "SearchQuery", attribute = "list", include = "logical")
: Add multiple attributes to be included or excluded in the search.
signature(m = "SearchQuery", attribute = "character", value = "character")
: Add an attribute value filter to be included in the search.
signature(m = "SearchQuery", attribute = "character", value = "list")
: Add multiple attribute value filters to be included in the search.
signature(m = "SearchQuery", attribute = "character", value = "character", include = "logical")
: Add an attribute value filter to be included or excluded in the search.
signature(m = "SearchQuery", attribute = "character", value = "list", include = "logical")
: Add multiple attribute value filters to be included or excluded in the search.
Attribute filters and value filters are using OR if added as a list at once and AND if added seperately by multiple calls to addAttributeFilter/addAttributeValueFilter.
Search
CreateSearchQuery
SearchResult
# Search for time series that are the key GDP series for the regions US, GB and DE. query <- CreateSearchQuery() setEntityTypeFilter(query, "TimeSeries") addAttributeValueFilter(query, "RegionKey", "gdp_total") addAttributeValueFilter(query, "Region", c("us", "gb", "de")) searchResult <- Search(query)