ベクトルがいくつかあったとします。例えばこんなの。 a1<-c(1,NA,3,4,5,1,4,9,9) a2<-c(1,2,3,NA,5,6,7,3,9) a3<-c(6,2,5,4,5,6,NA,8,9) a4<-c(1,9,3,4,5,6,7,8,9) a5<-c(3,2,3,4,5,6,7,8,9) a6<-c(1,NA,3,4,5,6,7,1,9) a7<-c(1,2,3,4,5,6,7,8,NA) a8<-c(NA,2,3,4,5,6,7,8,9) a9<-c(1,NA,3,4,5,6,7,2,9) a10<-c(1,2,3,4,5…