2016-04-28 35 views
0

phicoef()如果我做的:錯誤作爲R

m <- matrix(c(3,1914,689993,346109647),nrow=2,ncol=2) 
phicoef(m) 

它給了我:

Error in phicoef(m) : 
when 'y' is not supplied, 'x' must be a 2x2 integer matrix or an integer vector of length 4. 

我建議立即進行刪除嗎?

回答

1

定義的整數矩陣:

m <- matrix(c(3L,1914L,689993L,346109647L),nrow=2,ncol=2) 
typeof(m) 
#[1] "integer"