save_sparse_binary | R Documentation |
save a sparse matrix in binary format
save_sparse_binary(sparse_matrix, file_name = "save_sparse.mat")
sparse_matrix |
a sparse matrix |
file_name |
a character string specifying the binary file |
writes the sparse matrix to a file
library(textTinyR)
tmp = matrix(sample(0:1, 100, replace = TRUE), 10, 10)
sp_mat = dense_2sparse(tmp)
# save_sparse_binary(sp_mat, file_name = "save_sparse.mat")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.