dropFirst: Drop the first element of a vector or matrix

Description Usage Arguments Value Author(s) Examples

Description

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.

Usage

1

Arguments

x

a vector or matrix.

Value

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.

Author(s)

Giovanni Petris GPetris@uark.edu

Examples

1
2
3


Search within the dlm package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.