Add Transpose Section to an Existing StreamPress File
Examples
# \donttest{
library(Matrix)
m <- rsparsematrix(50, 20, 0.3)
tmp <- tempfile(fileext = ".spz")
st_write(m, tmp, include_transpose = FALSE)
st_add_transpose(tmp)
#> [transpose] Reading 50 x 20 matrix (nnz=300)...
#> [transpose] Recompressing with transpose...
#> [transpose] Done. Transpose added (1 chunks).
info <- st_info(tmp)
unlink(tmp)
# }