我在[R腳本代碼下面幾行稱爲assign1.R
:只有源()不工作(「節點堆棧溢出」)
(u <- c(1, 1, 0, 1, 0)) # a)
u[3] # b)
ones_u <- which(u == 1) # c)
ones_u
source("assign1.R")
,該source()
功能不起作用。 R向我顯示以下錯誤消息:
Error in match(x, table, nomatch = 0L) : node stack overflow
Error during wrapup: node stack overflow
問題是什麼?
我能問你到底發生了什麼嗎? – joran 2014-10-03 20:37:16
我們怎麼可能知道,沒有看到assign1.R中的代碼? – digEmAll 2014-10-03 20:40:56
所以你的代碼反覆調用自己?我認爲這將是原因。 – stanekam 2014-10-03 20:42:08