# invyrfraction: Inverse Fraction of the Year or Hour In season: Seasonal Analysis of Health Data

 invyrfraction R Documentation

## Inverse Fraction of the Year or Hour

### Description

Inverts a fraction of the year or hour to a useful time scale.

### Usage

```invyrfraction(frac, type = "daily", text = TRUE)
```

### Arguments

 `frac` a vector of fractions of the year, all between 0 and 1. `type` “`daily`” for dates, “`monthly`” for months, “`hourly`” for hours. `text` add an explanatory text to the returned value (TRUE) or return a number (FALSE).

### Details

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. For `hourly` it returns the fraction of the 24-hour clock starting from zero (midnight).

### Value

 `daym` date (day and month for `daily`) or fractional month (for `monthly`) or fractional of the 24-hour clock (for `hourly`).

```
{"ft_lang_label":"__label__en","ft_lang_prob":0.769352,"math_prob":0.6685192,"size":1011,"snap":"2023-40-2023-50","text_gpt3_token_len":315,"char_repetition_ratio":0.16087389,"word_repetition_ratio":0.0,"special_character_ratio":0.28981206,"punctuation_ratio":0.16894977,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96713287,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-02T18:43:13Z\",\"WARC-Record-ID\":\"<urn:uuid:22f8963e-f9f0-496d-99cf-e21eaa210d3d>\",\"Content-Length\":\"31909\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a0bb2f47-a6f9-4f7e-be94-64f5f1202a10>\",\"WARC-Concurrent-To\":\"<urn:uuid:a3ad6eea-9551-4560-99ac-8743aa7c01b2>\",\"WARC-IP-Address\":\"51.81.83.12\",\"WARC-Target-URI\":\"https://rdrr.io/cran/season/man/invyrfraction.html\",\"WARC-Payload-Digest\":\"sha1:2MPYTH3EDUXRQGDUYVFM3BZK4TWZZQ52\",\"WARC-Block-Digest\":\"sha1:XFTDUJWTO3EBEG4AXYJWJBAEEHTJTX3S\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100448.65_warc_CC-MAIN-20231202172159-20231202202159-00036.warc.gz\"}"}