R/find.R

Defines functions finds

Documented in finds

##
##  f i n d . R  Finds indices of nonzero elements
##


finds <- function(v) 
    which( if (is.logical(v)) v else v != 0 )

Try the pracma package in your browser

Any scripts or data that you put into this service are public.

pracma documentation built on March 19, 2024, 3:05 a.m.