Having this special class limits what arithmetic can be done thanks to lubridate's "Period" class (e.g. time + hours(4)) because adding the special class to "Period" won't work unless you define an addition method for '+'. This is the addition method for adding Period and repgendate classes, but other arithmetic operations will need to do the same.
1 2 | ## S4 method for signature 'repgendate,Period'
e1 + e2
|
e1 |
object of class "repgendate" (from repgen) |
e2 |
object of class "Period" (from lubridate) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.