search_param | R Documentation |
Search for global parameters matching a substring.
search_param(
anal,
keyword,
category = c("full", "physical", "logical"),
flight_record = NULL,
group = NULL,
max_results = NULL
)
anal |
An analytic object (an element of list returned by tseries_query) |
keyword |
A character string to search for in the parameter names. |
category |
Kind of parameter to search. Defaults to 'full' (all available.) |
flight_record |
Optional flight record to restrict search to. |
group |
A group ID to restrict the search to. Defaults to all group IDs. |
max_results |
Defaults to 200 - if set to 0, it will return all results. |
This function uses the analytic element of a time series query to search for global parameters matching a substring. It will return a list containing all the parameters that match the substring, as well as their EMS GUIDs, names, descriptions, and units.
A list of parameters lists (list of lists) with the following fields:
id: EMS GUID of the parameter
name: Name of the parameter
description: Description of the parameter
units: the units of the parameter, if available
metadata: any associated metadata text, if available
ems_id: EMS ID of the analytic
## Not run:
# Connect to EMS
conn <- connect("http://localhost:8080")
# Get a time series query object
qry <- tseries_query(conn, 1)
# Search for parameters with keyword "weather"
prm <- search_param(qry$analytic, "weather")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.