first {quantmod} | R Documentation |
A simple generic function to return the first or last element or row of a vector or two-dimensional data object.
first(x,...) last(x,...) ## Default S3 method: first(x,...) ## Default S3 method: last(x,...)
x |
1 or 2 dimensional data object |
... |
additional args - unused |
A simple wrapper to extract the first or last element of an object.
A one element/row data object
Jeffrey A. Ryan
first(1:100) last(1:100) data(LakeHuron) first(LakeHuron) last(LakeHuron)