listev: returns the ith element of a list supposed to be numeric

Description Usage Arguments Value Examples

View source: R/f0.rbsb1.code.r

Description

Returns the ith element of a list supposed to be numeric. As liste[[ith]] but returns numeric(0) if the length of the list is shorter than ith.

Usage

1
listev(liste, ith)

Arguments

liste

the list

ith

number of the element to return

Value

The ith element of liste if it exists numeric(0) otherwise.

Examples

1
 listev(list(A=123, B=234, C=345), 2);

rbsb documentation built on May 31, 2017, 1:45 a.m.