title: R: If statement for multiple conditions based on list/vector
body: <p>Say I have an n-vector that I want to apply an if-condition of based on multiple conditions stored in another vector/list, how can I loop and assign the names to my original vector?</p>
  
  <pre><code>set.seed(1234)
  
  # Data
  b &lt;- rpois(100, 4)
  
  # Condition
  a &lt;- 1:10
  names(a) &lt;- paste0(seq(10,100, by = 10),'%')
  </code></pre>