Learn R Programming

tci (version 0.1.2)

tail_vec: Extract last element or column

Description

Function to extract the last element from a vector or the last column from a matrix

Usage

tail_vec(x)

Value

Numeric value if x is a vector, numeric vector if x is a matrix

Arguments

x

Vector or matrix