Skip to content

Error with unnamed matrix input #3

@daynefiler

Description

@daynefiler

Produces uninformative error

tstMat <- t(rmultinom(16, 1000, c(0.1, 0.5, 0.2, 0.1, 0.05, 0.05)))
dmn(count = tstMat, k = 6)
# Error in dmn(count = tstMat, k = 6) : 
#  VECTOR_ELT() can only be applied to a 'list', not a 'NULL'

Runs without error

tstMat <- t(rmultinom(16, 1000, c(0.1, 0.5, 0.2, 0.1, 0.05, 0.05)))
rownames(tstMat) <- sprintf("ID%d", 1:16)
colnames(tstMat) <- sprintf("Val%d", 1:6)
dmn(count = tstMat, k = 6)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions