Description Usage Arguments Value Author(s) Examples

A utility function, `dropFirst`

drops the first element of a
vector or matrix, retaining the correct time series attributes, in
case the argument is a time series object.

1 | ```
dropFirst(x)
``` |

`x` |
a vector or matrix. |

The function returns `x[-1]`

or `x[-1,]`

, if the argument is
a matrix. For an argument of class `ts`

the class is preserved,
together with the correct `tsp`

attribute.

Giovanni Petris [email protected]

1 2 3 | ```
(pres <- dropFirst(presidents))
start(presidents)
start(pres)
``` |

dlm documentation built on May 30, 2017, 3:37 a.m.

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.