What's the preferred way of creating a large RleMatrix?
The documentation page ?RleMatrix only covers how make an RleMatrix from a single Rle (which doesn't work for very large RleMatrix objects)
First creating a normal matrix and then coercing to RleMatrix, requires keeping the original matrix in memory which is not possible.
I'm currently using the approach of first creating a DataFrame of Rle's, and then coercing that to an RleMatrix, but that seems a bit slow. Is there a smarter way?
Thank you! Does the new constructor affect how the chunks are structured? If you construct an RleMatrix from a DataFrame of Rle's, is the RleMatrix then chunked by column?
The change to the constructor is that it now accepts a list-like object of Rle objects (e.g. RleList object or DataFrame of Rle's). Each list element in this list-like object becomes a chunk. So yes, if the input to the constructor is a DataFrame of Rle's then each column of the DataFrame becomes a chunk.
H.