Displaying 2 results from an estimated 2 matches for "sparsemat_test".
2025 Feb 12
1
Unexpected result after auto-attaching of the Matrix package
...expected:
>
>R version 4.4.2 (2024-10-31) -- "Pile of Leaves"
>Copyright (C) 2024 The R Foundation for Statistical Computing
>Platform: x86_64-pc-linux-gnu
>
>> library(Matrix)
>
>> sparseMatrix(i=1:10, j=1:10, x=rnorm(10)) |>
>saveRDS("~/Downloads/sparsemat_test.rds")
>> q()
>Save workspace image? [y/n/c]: n
># start R again
>> d <- readRDS("~/Downloads/sparsemat_test.rds")
>> class(d)
>[1] "dgCMatrix"
>attr(,"package")
>[1] "Matrix"
>> dim(d)
>Loading required packag...
2025 Feb 11
2
Unexpected result after auto-attaching of the Matrix package
...is behavior - not sure if this is expected:
R version 4.4.2 (2024-10-31) -- "Pile of Leaves"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu
> library(Matrix)
> sparseMatrix(i=1:10, j=1:10, x=rnorm(10)) |>
saveRDS("~/Downloads/sparsemat_test.rds")
> q()
Save workspace image? [y/n/c]: n
# start R again
> d <- readRDS("~/Downloads/sparsemat_test.rds")
> class(d)
[1] "dgCMatrix"
attr(,"package")
[1] "Matrix"
> dim(d)
Loading required package: Matrix
NULL
> dim(d)
[1] 10 1...