raws_filter: General purpose data filtering for raws_timeseries objects

View source: R/raws_filter.R

raws_filterR Documentation

General purpose data filtering for raws_timeseries objects

Description

A generalized data filter for raws_timeseries objects to choose rows/cases where conditions are true. Multiple conditions are combined with & or separated by a comma. Only rows where the condition evaluates to TRUE are kept.Rows where the condition evaluates to NA are dropped.

Usage

raws_filter(rawsObject = NULL, ...)

Arguments

rawsObject

raws_timeseries object.

...

Logical predicates defined in terms of the variables in the rawsObject$data.

Value

A subset of the incoming raws_timeseries.

See Also

raws_filterDate

Examples


library(RAWSmet)

rawsObject <- example_cefa_Saddle_Mountain

daytime <- raws_filter(rawsObject, solarRadiation > 0)
head(daytime$data)



MazamaScience/RAWSmet documentation built on May 6, 2023, 6:57 a.m.