Re: [R] Error during matrix multiplication

2012-09-13 Thread Jeff Newmiller
You used neither str() nor dput(), you still haven't provided reproducible code (your code reads csv, but you did not supply csv), and you are posting in html as the posting guide requests that you not do (but you probably didn't read that either). A more verbose description of how to ask a ques

Re: [R] Error during matrix multiplication

2012-09-12 Thread s.s.m. fauzi
Yes, I have a row and column header. I need to save the row and column header. Here is the example of the data *Whirr_127.csv* WHIRR.127 WHIRR.128 WHIRR.129 WHIRR.137 WHIRR.139 WHIRR.140 WHIRR.141 WHIRR.145 WHIRR.146 WHIRR.147 Adrian Cole 0 0 1 0 0 0

Re: [R] Error during matrix multiplication

2012-09-12 Thread Jeff Newmiller
You need to learn to use the str() function to debug these kinds of problems. And you need to learn to provide data with your code (perhaps with the dput function) so others can reproduce your problem if you want help. I would guess that you have non-numeric data in your files. -

[R] Error during matrix multiplication

2012-09-12 Thread s.s.m. fauzi
Hi, I have two matrix from two different .csv files. #load .csv files a <- as.matrix(read.table("Whirr_127.csv", header=T, sep=",", row.names=1)) b <- as.matrix(read.table("Files_Whirr_127.csv", header=T, sep=",", row.names=1)) a b I managed to do transpose to 'b' without any error. transpose_ta