findFirst: Find the first index with a non-zero value in a vector.

Description Usage Arguments Value Examples

Description

Find the first index with a non-zero value in a vector.

Usage

1
findFirst(vect)

Arguments

vect

A vector.

Value

The first index with a non-zero value in the vector.

Examples

1
2
findFirst(c(0,0,1,0,4,2))
findFirst(c(0,6,3,4))

caeh17/Financial-Calculator documentation built on May 20, 2019, 1:13 p.m.