Description Usage Arguments Details Value See Also Examples

Generates series of the percentage variation of the series data passed as parameter.

1 |

`data` |
Time series or vector to be converted to a |

`lag` |
(Optional) Number of lags to differentiate with |

Data must be time indexed, either as `ts`

or `zoo`

. If observation(s) are negative or zero, the algorithm changes to the traditional percentage variation.

Time series of the percentage variation with the first position(s) as `NA`

.

1 2 3 4 5 6 |

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.