Skip to content

CSCMatrix to dgMatrix not working with plain R command script #129

@tongjiyiming

Description

@tongjiyiming

my script is
cat_train <- hashed.model.matrix( f, as.data.table(cat_train), HASHING_DIM_ )
I got

Error in as(retval, "dgCMatrix") : 
  no method or default for coercing “CSCMatrix” to “dgCMatrix”

when I run it in a command line terminal with plain R script environment. But, the code works inside Rstudio.

Please check

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