Skip to content

Error: not compatible with requested type trying to write svmlight #1

@dkincaid

Description

@dkincaid

Trying to write a sparse matrix that was created using the text2vec package and getting an error about a type problem.

> write.svmlight(dtm_train, rownames(dtm_train), "/tmp/pd.svm")
Error in write.svmlight(dtm_train, rownames(dtm_train), "/tmp/pd.svm") : 
  not compatible with requested type
> class(dtm_train)
[1] "dgCMatrix"
attr(,"package")
[1] "Matrix"

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