https://github.com/cran/pracma
Raw File
Tip revision: a7001ff1805634d18a10fa371b38dbe3e48f8c9e authored by HwB on 30 October 2011, 00:00:00 UTC
version 0.8.1
Tip revision: a7001ff
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