title: How to calculate standard deviation in R
body: <p>I want to calculate standard deviation of 40 data points, through <code>R</code>. I was not able to do that...</p>
  
  <p>I have tried:</p>
  
  <pre><code>&gt; sd{1, 2, 3}
  Error: unexpected '{' in "sd{"
  &gt; sd(1, 2, 3)
  Error in sd(1, 2, 3) : unused argument (3)
  </code></pre>
  
  <p>and also tried:</p>
  
  <pre><code>&gt; x &lt;- c(1, 2, 3)
  &gt; sd(x)
  [1] 1
  </code></pre>
  
  <p>It gives the output '1' but I believed that the standard deviation of 1, 2 and 3 and not 1.</p>
  
  <p>What am I doing wrong here? Forgive me, I am a beginner </p>