filterBaseline: Filter the baseline signal for a given time window

Description Usage Arguments Value Examples

Description

Filter the baseline signal for a given time window

Usage

1
2
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# 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")

discharge documentation built on May 2, 2019, 5:54 a.m.