Learn R Programming

rmgarch (version 1.2-9)

last-methods: First and Last methods for accessing objects

Description

Functions for accessing first-n and last-n values of an object (similar to head and tail).

Usage

last(x, index = 1, ...)
first(x, index = 1, ...)

Arguments

x
Currently only arrays supported.
index
First or Last n-indices to return values for.
...
For expansion to other classes.