last.element: Find the last element in a vector

Description Usage Arguments Value Author(s)

View source: R/clanToolsFunctions.R

Description

This functions also handles NULL vectors and NA-values.

Usage

1
2
xx <- c(NA,1:100,NA)
last.element(xx)

Arguments

x

is the vector

na.ignore

controls if NA-values should be ignored

N

(default = 1) is the number of elements that should be returned

Value

The last element

Author(s)

Claus E. Andersen


claus-e-andersen/clanTools documentation built on Oct. 23, 2020, 7:59 a.m.