trail | R Documentation |
A combination of head()
and tail()
: Returns a vector containing the first
N
and last N
elements of vector.
trail(vec, N = 10)
vec |
A vector. |
N |
The number of elements to include from each end. |
A vector.
trail(rnorm(10), N = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.