Unexpected Closing Bracket in R?
<pre><code>eCHFao&lt;- -0.141081
#eCHFa1&lt;-0
eCHFb1&lt;- 0.985833
eCHFg1&lt;- 0.199665
meanCHF&lt;- mean(XtCHF)
eVarCHF&lt;- (array,3421)
eVarCHF[1]&lt;- var(XtCHF)
abco&lt;- c(meanCHF, XtCHF1)
for (i in 2:3421) {eVarCHF[i]&lt;- exp(eCHFao + (eCHFb1*log(sqrt(eVarCHF[i-1]))}
</code></pre>

<p>this code can't run because of an unexpected closing bracket, I am not sure why the bracket is unexpected or what I am missing?</p>