Problem of combine function when combining different numeric types
0
0
Entering edit mode
Pan Du ★ 1.2k
@pan-du-2010
Last seen 9.6 years ago
Hi Martin, I am not sure who I should contact with for this problem. I just send this to you. The problem is: when I try to combine two numeric types (integer and double) of matrix (actually they are in the assayData of ExpressionSet), the combine function reports error. For example: a = matrix(rnorm(10), 2) # set rownames and colnames because combine function require it. colnames(a) = LETTERS[1:5]; rownames(a) = 1:2 b = matrix(1:10, 2) colnames(b) = LETTERS[6:10]; rownames(b) = 1:2 combine(a, b) > Error in combine(a, b) : matrix types double, integer differ I suppose the combine function should automatically convert the integer as double before combining them because this situation can be met very often. What's your suggestion? Thanks! Have a nice day! Pan
convert convert • 660 views
ADD COMMENT

Login before adding your answer.

Traffic: 878 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6