trail: trail

View source: R/CodeAndRoll2.R

trailR Documentation

trail

Description

A combination of head() and tail(): Returns a vector containing the first N and last N elements of vector.

Usage

trail(vec, N = 10)

Arguments

vec

A vector.

N

The number of elements to include from each end.

Value

A vector.

Examples

trail(rnorm(10), N = 3)


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.