Description Usage Arguments Value Author(s) Examples
select rows within a given data range from a data.frame
1 2 | selectDates(y1 = 1920, y2 = 2010, m1 = 1, d1 = 1, m2 = 1, d2 = 1,
df = get("dis"), logic = FALSE)
|
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? |
data.frame (selected rows)
Berry Boessenkool, berry-b@gmx.de, Jun 2017
1 2 | load(seasFolder("data/dismeta.Rdata"))
str(selectDates(y1=2009)[,c(1,14:18)])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.