Skip to content

Collapse taxonomy Error in if (class(Tab) != "matrix") #32

@darioxr

Description

@darioxr

Since update 4 of R, matrix is now: "matrix" "array", which creates an error

class(Tab)
[1] "matrix" "array"
class(Tab) != "matrix"
[1] FALSE TRUE
Error in if (class(Tab) != "matrix") stop("ERROR: Tab must be a matrix object", :
the condition has length > 1

Could you please update the code to include this new characteristic please. There are some recommendations like changing it to: if (inherits(matrix_obj, "matrix"))
https://stackoverflow.com/questions/64660948/issue-with-creating-a-matrix-in-r

Thanks for your help. I use your package.

Best regards,

DX

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions