baseDay2decimal: Base Day

View source: R/smwrBase_baseDay2decimal.R

baseDay2decimalR Documentation

Base Day

Description

Computes the decimal time representation of the base day of the year. From smwrBase package.

Usage

baseDay2decimal(x)

Arguments

x

a vector of baseDay values, character, or factors of the form month abbreviation and day number, generally created from baseDay. Missing values are permitted and result in missing values in the output. Unmatched values also result in missing values in the output.

Value

A numeric value representing the base day.

See Also

baseDay

Examples

# The baseDay ordered by calendar year
bd.tmp <- baseDay(c("2000-02-29", "2000-03-01", "2001-03-01"), 
  numeric=FALSE)
baseDay2decimal(bd.tmp)
# ordered by water year, result should agree
bd.tmp <- baseDay(c("2000-02-29", "2000-03-01", "2001-03-01"), 
  numeric=FALSE, year="water")
baseDay2decimal(bd.tmp)

leppott/baytrends documentation built on Nov. 2, 2024, 6:42 p.m.