Closed Yunuuuu closed 5 months ago
But it's hard to deal with [<-
method since it use dgCMatrix
class object as a substituted value, which only accept numeric data type, this means [<-
cannot work for integer IterableMatrix
with usual R matrix.
Some ways to deal with [<-
x
, and use convert_type
for value
argument before proceeding.mode
or type
, let user to choose the final ouput matrix_type
, this can also be applied to rbind
and cbind
function. Thanks for spotting the bug and suggesting a fix! I've added a regression test to cover the fixed error, and gone with your first suggested strategy for handling [<-
(convert to match x, and output a warning if value gets automatically converted)
fix https://github.com/bnprks/BPCells/issues/68