title: Error: unexpected '}' in "}" in R
body: <p>I am praticing R codes.
  When I type</p>
  
  <pre><code>sim.clt &lt;- function (m=100,n=10,p=0.25)
  { z = rbinom(m,n,p)
    x = (z-n*p)/sqrt(n*p*(1-p))
    hist(x,prob=T,breaks=20,main=paste("n =",n,”p =”,p))
    curve(dnorm(x),add=T)
  }
  </code></pre>
  
  <p>It gives me errors:</p>
  
  <pre><code>Error: unexpected input in:
  
      "  x = (z-n*p)/sqrt(n*p*(1-p))
        hist(x,prob=T,breaks=20,main=paste("n =",n,?
      &gt;   curve(dnorm(x),add=T)
      &gt; }
      Error: unexpected '}' in "}"
      &gt; 
  </code></pre>
  
  <p>How to I fix the error? Thank you</p>