How to identify which columns are not “NA” per row in a matrix?

后端 未结 0 1516
醉梦人生
醉梦人生 2021-02-13 08:14

I have a matrix with 12 rows and 77 columns, but to simply lets use:

p <- matrix(NA,5,7)  
p[1,2]<-0.3  
p[1,3]<-0.5  
p[2,4]<-0.9  
p[2,7]<-0.4         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题