title: R: subset of character vector
body: <p>I want to get a subset from a character vector. However I want to obtain vector2 containing elements from initial vector between specific elements. </p>
  
  <pre><code>vector &lt;- c("a", "", "b", "c","","d", "e")
  vector
  </code></pre>
  
  <p>how to grab all elements between elements "b" and "e" and get vector2?</p>
  
  <pre><code>#Expected result:
  vector2
  "c","","d"
  </code></pre>