filterTs: Find all the time series objects that match a given search...

View source: R/timeseries.R

filterTsR Documentation

Find all the time series objects that match a given search expression, and return a new time series with the matching objects Valid operators : ==, =, <=, >=, <, >

Description

Find all the time series objects that match a given search expression, and return a new time series with the matching objects Valid operators : ==, =, <=, >=, <, >

Usage

filterTs(ts, expression, exact = FALSE)

Arguments

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?

Value

new.ts : Time series : list

Author(s)

Chris Heiser

Examples

## Not run: 
# Time series
ts = [ object1, object2, object3, object4 ]

# Example 1
new.ts = filterTs(ts, "archiveType == marine sediment")
# result
[object1, object3, object4]

# Example 2
new.ts = filterTs(ts, ["paleoData_variableName == d18O", "archiveType == marine sediment"])
# result
[object2]


## End(Not run)

nickmckay/lipdR documentation built on April 13, 2025, 5:58 p.m.