Description Usage Arguments Value Examples

This function computes a lagged vector, shifting it back or forward.

1 |

`x` |
A vector. |

`k` |
integer. The number of lags.
If |

`na` |
logical. If |

`cst` |
logical.
If |

A vector of the same type and length as `x`

.

1 2 3 4 5 6 7 8 |

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.