### Generate a matrix
M<-matrix(rnorm(100),10,10)
M[1,1]<-NA
M[1,2]<- -Inf
M[3,10]<-NA
### Indices of the rows without missing values
ind<-is.row.na(M)
### Submatrix of M with finite values
M.finite<-M[ind,]Run the code above in your browser using DataLab