Description Usage Arguments Details Value Author(s) Examples
View source: R/invyrfraction.R
Inverts a fraction of the year to a date variable or month fraction.
1 | invyrfraction(frac, type="daily", text=TRUE)
|
frac |
a vector of fractions of the year, all between 0 and 1. |
type |
“ |
text |
add an explanatory text to the returned value (TRUE) or return a number (FALSE). |
Returns the day and month (for daily
) or fraction of the month (for monthly
) given a fraction of the year. Assumes a year length of 365.25 days for daily
. When using monthly
the 1st of January is 1, the 1st of December is 12, and the 31st of December is 12.9.
daym |
date (day and month for |
Adrian Barnett a.barnett<at>qut.edu.au
1 2 | invyrfraction(c(0,0.5,0.99), type='daily')
invyrfraction(c(0,0.5,0.99), type='monthly')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.