https://github.com/cran/pracma
Raw File
Tip revision: 6b5162225f1e90f742ac53c32bf06c8053cff577 authored by HwB on 26 July 2011, 00:00:00 UTC
version 0.7.5
Tip revision: 6b51622
find.R
##
##  f i n d . R  Finds indices of nonzero elements
##


find <- function(v) 
    which( if (is.logical(v)) v else v != 0 )
back to top