firstFinite: Get First Finite Value in a Vector or Array.

firstFiniteR Documentation

Get First Finite Value in a Vector or Array.

Description

If x is a vector, this is straightforward. If x is anything else, it is first converted to a vector with as.vector(), so the first value will be with respect to storage by columns, for a matrix, etc.

Usage

firstFinite(v)

Arguments

v

A numerical vector or array.

Value

The first finite value, or NULL if there are no finite values.


oce documentation built on Sept. 11, 2024, 7:09 p.m.