dec_time | R Documentation |

Create decimal time on an annual scale from an input time vector

```
dec_time(date_in)
## S3 method for class 'Date'
dec_time(date_in)
```

`date_in` |
input time vector, usually a |

Function is used internally within the package.

A named list of four numeric vectors including `day_num`

(decimal day on an annual scale), `month`

(month of the year as integer), `year`

, and `dec_time`

(decimal time as sum of `year`

and `day_num`

)

```
dt <- Sys.Date()
dts <- seq.Date(dt - 365, dt, by = 'day')
dec_time(dts)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.