Skip to contents

Wraps a data matrix as a graph input node. The matrix can be dense or sparse (dgCMatrix), or a file path to a .spz file for streaming.

Usage

factor_input(data, name = NULL)

Arguments

data

A numeric matrix, sparse matrix (dgCMatrix), or character string path to a .spz file for out-of-core streaming NMF.

name

Optional name for the input (used in multi-modal results).

Value

An fn_node object of type "input".

Examples

data(aml)
inp <- factor_input(aml, name = "aml")
inp
#> fn_node: input (aml)