Learn R Programming

skmeans (version 0.1-7)

cluto: Read and Write Matrices in CLUTO Sparse Matrix Format

Description

Read and write matrices in CLUTO sparse matrix format.

Usage

readCM(con, clabel = NULL)
writeCM(mat, con)

Arguments

con
a connection object or a character string.
clabel
a character string giving the path to a CLUTO column labels file, or NULL (default).
mat
a matrix object.

Details

Documentation for CLUTO including its sparse matrix format is available from http://www-users.cs.umn.edu/~karypis/cluto/.

readCM reads CLUTO sparse matrices, returning a simple triplet matrix (for more information, see simple_triplet_matrix in package slam).

writeCM writes CLUTO sparse matrices. Argument mat must be coercible to a simple triplet matrix via as.simple_triplet_matrix.