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.
firstFinite(v)
A numerical vector or array.
The first finite value, or NULL if there are no finite values.