Description Usage Arguments Details Value

Applies the diff function but pads it with `NA`

s to retain original length.

1 | ```
filldiff(x, gap = 1)
``` |

`x` |
a vector of any type |

`gap` |
the gap to be passed to |

When the gap is an odd number the extra `NA`

goes at the start.

A difference vector with `NA`

s introduced to make it up to the same size as the input

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.