Learn R Programming

slam (version 0.1-2)

foreign: Read and Write Sparse Matrix Format Files

Description

Read and write CLUTO sparse matrix format files.

Usage

read_stm_CLUTO(file)
write_stm_CLUTO(x, file)

Arguments

file
a character string with the name of the file to read or write.
x
a matrix object.

Details

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

read_stm_CLUTO reads CLUTO sparse matrices, returning a simple triplet matrix.

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