thank but i got this error.
> expr <- matrix(as.integer(DatExpr), nrow=nrow(DatExpr))
Error in matrix(as.integer(DatExpr), nrow = nrow(DatExpr)) :
'list' object cannot be coerced to type 'integer'
• 0 views
•
link
Show us your code and tell us what you've tried. Googling the error message should be enough to solve this problem.
What does
str(head(datExpr[,1:5])show? Also, you're reading intoDatExprand usingdatExprin the next line. Is that a typo or are they 2 different objects?it is a typo.
From your screenshot, I thought the gene IDs were rownames but you have them as a non-numeric column, which makes the error kinda obvious, don't you think?
Use
as.matrixon the dataframe after excluding the first column.