Checks the first NA value within a matrix or array and returns the location. Useful function for iteratively filling an object without the use of another iteration

startfun(myinp)

Arguments

myinp

empty array or matrix; This object must be empty or just created filled with NA.