queryTs | R Documentation |
Find all the time series entries that match a given search expression, and return vector of the indices that match. indices = queryTs(ts, "archiveType == marine sediment") Valid operators : ==, =, <=, >=, <, >
queryTs(ts, expression, exact = FALSE)
ts |
Time series list , Time Series data |
expression |
Search expression char (single query) or list (multiple query) |
exact |
Key match char. Is the provided key an exact key match or a piece of the key? ie. paleoData_variableName or variableName? |
idxs: Matching indices : list
Chris Heiser
## Not run:
# Time series
ts = [ object1, object2, object3, object4 ]
# Example 1
idxs = filterTs(ts, "archiveType == marine sediment")
# result
[1, 3, 4]
# Example 2
idxs = filterTs(ts, "paleoData_variableName == d18O")
# result
[2]
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.