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\'
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)
sample