Closed garyzhubc closed 4 months ago
Can you tell me in which function this occurs?
It was when I'm converting regular matrix into sparse matrix
bma$tt <- methods::as(bma$tt, "RsparseMatrix")
In which function of the package?
C. B.
Le 14 mars 2024 à 17:13, Peiyuan Zhu @.***> a écrit :
It was when I'm converting regular matrix into sparse matrix
bma$tt <- methods::as(bma$tt, "RsparseMatrix") — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.
It’s not part of the package, but an issue that I have in converting sparse matrix as required by the package. Sent from my iPhoneOn Mar 14, 2024, at 2:28 PM, Claude Boivin @.***> wrote: In which function of the package?
C. B.
Le 14 mars 2024 à 17:13, Peiyuan Zhu @.***> a écrit :
It was when I'm converting regular matrix into sparse matrix
bma$tt <- methods::as(bma$tt, "RsparseMatrix")
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
I have already run into this problem, although it was within the package. I solved this by adding the package "methods" in the imports of the DESCRIPTION file. If the problem arise in a function you have defined, you may need to add: @import methods see this page on stackoverflow website: https://stackoverflow.com/questions/36432248/error-in-asdata-transactions-no-method-or-default-for-coercing-data-to
at times I run into this type of error: