R error: cannot coerce type 'closure' to vector of type 'double'

前端 未结 1 927
遥遥无期
遥遥无期 2020-12-19 21:14

I\'m getting an error in my R program that says:

Error in as.double(x) : cannot coerce type \'closure\' to vector of type \'double\'

相关标签:
1条回答
  • 2020-12-19 21:43

    Change:

    sd.norm = sd(sample)/sqrt(n)
    

    to:

    sd.norm = sd(the.sample)/sqrt(n)
    

    You are trying to use the function sample (a closure) as a number (double)

    0 讨论(0)
提交回复
热议问题