Displaying 1 result from an estimated 1 matches for "warcol".
Did you mean:
marcol
2024 Nov 11
0
Matrix - querying dsCMatrix how to save it
...gt; sparse matrix? Thanks in advance!
as that is a relative general question, I allow myself to answer
in public such that the answer my help others as well.
Let's use an example from package 'nadiv':
require(nadiv)
?makeA # to learn about the function
## create a largish example
Awarcol <- makeA(ggTutorial[1:2000, 1:3])
str(Awarcol)
nnzero(Awarcol)
object.size(Awarcol)
object.size(as.matrix(Awarcol)) # ~ 14 times large
image(Awarcol) # wait a bit .. ... but it's worth it!
-------------
> Awarcol <- makeA(ggTutorial[1:2000, 1:3])
> str(Awarcol)
Formal class '...