title: Warning: longer object length is not a multiple of shorter object length
body: <p>I hope you won't downvote me for this question, i know there are a few ones asked here about the same topic but i can't understand why this happens.</p>
  
  <p>I get this error message:
  Warning:</p>
  
  <pre><code>1. In test* rep(mean(c(sec)), n) + (1 - test) * c(sec)
  </code></pre>
  
  <p>longer object length is not a multiple of shorter object length</p>
  
  <p>Now, the formula is:</p>
  
  <pre><code>  Sec&lt;-  test* rep(mean(c(sec)), n) + (1 - test) * c(sec)
  </code></pre>
  
  <p>the sec takes values from a txt file.</p>
  
  <p>Could you help me understand it?
  Where should i look?</p>
  
  <p>Thanks in advance</p>