Re: [R] Need help in matrix multiplication error

2008-05-19 Thread jim holtman
Is this what you want: you need the 'drop=FALSE' to make sure it stays a matrix. > data <- read.table(textConnection(" Statement T1001 T1002 T1003 T1004 T1005 T100 T1014 T1021 T1022 T1023 + 1 0 0 0 0 0 00 0 1 0 0 + 20 0 0 0 0

[R] Need help in matrix multiplication error

2008-05-19 Thread Jason Lee
Hi, I have a data file which is named test.txt as below. Prior to that, I have converted the last row from nominal to numeric using as.integer. Statement T1001 T1002 T1003 T1004 T1005 T100 T1014 T1021 T1022 T1023 1 0 0 0 0 0 00 0 1 0 0 20