selectDates: select Dates

Description Usage Arguments Value Author(s) Examples

View source: R/selectDates.R

Description

select rows within a given data range from a data.frame

Usage

1
2
selectDates(y1 = 1920, y2 = 2010, m1 = 1, d1 = 1, m2 = 1, d2 = 1,
  df = get("dis"), logic = FALSE)

Arguments

y1, m1, d1

Beginning year, month and day. DEFAULTS: 1920,1,1

y2, m2, d2

Ending year, month and day. DEFAULTS: 2010,1,1

df

Dataframe with discharge records in columns. DEFAULT: dis

logic

Logical: return T/F vector: which rows of df are between a and b?

Value

data.frame (selected rows)

Author(s)

Berry Boessenkool, berry-b@gmx.de, Jun 2017

Examples

1
2
load(seasFolder("data/dismeta.Rdata"))
str(selectDates(y1=2009)[,c(1,14:18)])

ERottler/rfs documentation built on May 20, 2019, 3:04 p.m.