shorten: Shorten a vector

Description Usage Arguments Value Examples

View source: R/shorten.R

Description

Shorten a vector

Usage

1
shorten(x, by)

Arguments

x

a vector.

by

an integer value, giving the non-negative number of elements that should be left out, counted from the end of the vector.

Value

a vector

Examples

1
2
vec <- seq(10)
shorten(vec, 3)

henobe/flexoptr documentation built on March 11, 2021, 6:04 p.m.