Learn R Programming

discharge (version 1.0.0)

filterBaseline: Filter the baseline signal for a given time window

Description

Filter the baseline signal for a given time window

Usage

filterBaseline(bl, filter.date.start, filter.date.end,
  date.format = "%Y-%m-%d")

Arguments

bl

baseline signal as returned from the function prepareBaseline()

filter.date.start

start date of the filtering window

filter.date.end

end date of the filtering window

date.format

format of date specified in filter.date.start and filter.date.end

Value

baseline signal filtered for the given date window

Examples

Run this code
# NOT RUN {
# load sample data
data("sycamore")
x = sycamore

# get streamflow object for the sample data
x.streamflow = asStreamflow(x)

# baseline for single run for all the years in input signal
x.bl = prepareBaseline(x.streamflow)

# filter the baseline signal between years 1993 and 2000
x.bl.filtered = filterBaseline(x.bl, filter.date.start = "1993-01-01",
                               filter.date.end = "2000-12-31")

# }

Run the code above in your browser using DataLab