first: Return First n Elements of A Data Object

Description Usage Arguments Value

View source: R/getSymbols.ALFRED.R

Description

A generic function to return the first or first elements or rows of a vector or two-dimensional data object. This is a wrapper over the R CRAN package xts S3 function first.

Different here is that if n elements can not be returned, then instead, zero elements are returned.

Usage

1
first(x, ...)

Arguments

x

1 or 2 dimensional data object.

...

Dots passed. Typically, n = the exact number of elements to return.

Value

first elements or zero length element


AndreMikulec/econModel documentation built on June 30, 2021, 9:48 a.m.