search for: mat1m

Displaying 1 result from an estimated 1 matches for "mat1m".

Did you mean: mat1
2013 May 14
0
Matrix multiplication with scattered NA values
...eader=FALSE)) mat2<- as.matrix(read.table(text=" 24??????????????? 0.0000000??????? 0.0000000 0.0000000??????? 14??????????????? 0.0000000 0.0000000 0.0000000??????? 10 ",sep="",header=FALSE)) ?mat1%*%mat2 ?# ??? V1? V2? V3 #[1,] 792 630 500 #[2,]? NA? NA? NA library(Matrix) mat1m<- as(mat1,"dgCMatrix") ?mat2m<- as(mat2,"dgCMatrix") tcrossprod(mat1m,mat2m) #2 x 3 sparse Matrix of class "dgCMatrix" #??????????????? #[1,] 792 630 500 #[2,]? NA? NA 540 A.K. >Hi, > >I'm looking to multiply two matrices together, one of which...