R/matrix_threshold.R

Defines functions matrix_threshold

Documented in matrix_threshold

matrix_threshold<-function(matrix, threshold=NULL, minval=0, maxval=NULL, abs=TRUE, rmna=FALSE, ...){
    #x<-.Call("matrix_threshold",matrix, threshold, minval, maxval, abs, rmna, pkg="NetComp" )
    x<-.Call("matrix_threshold",matrix, threshold, minval, maxval, abs, rmna )
    if(is.null(row.names(matrix))==FALSE){
        row.names(x)<-row.names(matrix)
    }
     if(is.null(colnames(matrix))==FALSE){
        colnames(x)<-colnames(matrix)
    }
    x
}

Try the NetComp package in your browser

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

NetComp documentation built on May 2, 2019, 8:15 a.m.