binarize: Binarize Matrix

binarizeR Documentation

Binarize Matrix

Description

An input matrix (class matrix or simple_triplet_matrix) with numeric values will be turned into a binary (logical) matrix. The top values of each column will be assigned TRUE values.

Usage

binarize(.Object, ...)

## S4 method for signature 'simple_triplet_matrix'
binarize(
  .Object,
  top,
  reduce = TRUE,
  mc = FALSE,
  progress = TRUE,
  verbose = TRUE
)

## S4 method for signature 'matrix'
binarize(.Object, top, verbose = TRUE)

Arguments

.Object

input object

...

Further arguments (unused).

top

an integer value, the n values with the highes values that will be TRUE

reduce

logical, whether to drop row labels of a simple_triplet_matrix with no TRUE value in the matrix

mc

Whether to use multicore, passed into blapply().

progress

A logical value.

verbose

logical


PolMine/polmineR.misc documentation built on Nov. 23, 2022, 9:01 p.m.