Description Usage Arguments Value Note Author(s) Examples
Selects or drops the last element or the last n
elements of a
vector or the last n
rows or ncol
columns of a matrix
1 |
data |
vector or matrix or data.frame from which to select or drop |
n |
if >0, |
ncol |
if |
drop |
if only one row or column of a matrix (or one column of a data.frame) is selected or left over, should the result be a vector or a row or column matrix (or one variable data.frame) |
The selected elements of the vector or matrix or data.frame
This is a very simple function. It is defined mainly for selecting from the results of other functions without storing them.
Werner Stahel
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.