Re: [程式] R 如何找出行向量在矩陣中的行數

看板Statistics作者 (M)時間11年前 (2014/07/02 13:29), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串2/2 (看更多)
來個初學者的寫法 temp={0} for ( i in 1:nrow(setX) ) { temp[i]=sum(x=setX[i,]) } which( temp==ncol(setX) ) -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 163.15.152.186 ※ 文章網址: http://www.ptt.cc/bbs/Statistics/M.1404278964.A.CBE.html

07/02 21:48, , 1F
謝謝回應:)
07/02 21:48, 1F
文章代碼(AID): #1JivYqo- (Statistics)
文章代碼(AID): #1JivYqo- (Statistics)