Description Usage Arguments Details Value See Also Examples
Retrieve the start of a hydrological year either from the attributes or from the column 'hyear' of an object of class lfobj.
1 2 3 4 5 6 7 8 9 10 11 12 13 | hyear_start(x, abbreviate = FALSE)
## S3 method for class 'data.frame'
hyear_start(x, abbreviate = FALSE)
## S3 method for class 'xts'
hyear_start(x, abbreviate = FALSE)
hyear_start(x) <- value
## S3 replacement method for class 'xts'
hyear_start(x) <- value
## S3 replacement method for class 'lfobj'
hyear_start(x) <- value
|
x |
object of which the start of the hydrological year should be determined. |
abbreviate |
logical. Should the names be abbreviated? |
value |
numeric vector of length one. Month in which the hydrological year starts. |
If a valid start of an hydrological year is found in the attributes, it is returned. Otherwise if a column hyear exists, it is used. If this is note possible the integer number one is returned (for January) and a warning is issued.
a vector of length one, either of type character (abbreviate = TRUE
) or numeric.
1 2 3 4 5 |
Loading required package: xts
Loading required package: zoo
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
Loading required package: lmom
Loading required package: lattice
[1] 9
[1] "Jan"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.