title: Comparing Vectors Values: 1 element with all other
body: <p>I'm wondering how I can compare 1 element of a vector with all elements in the other vector. As an example: suppose</p>
  
  <pre><code>x &lt;- c(1:10)  
  y &lt;- c(10,11,12,13,14,1,7) 
  </code></pre>
  
  <p>Now I can compare the elements parewise</p>
  
  <pre><code>x == y
  [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
  </code></pre>
  
  <p>But I want to compare all elements of y with a specific element of x, something like</p>
  
  <pre><code>x[7] == y
  [1] FALSE  TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
  </code></pre>
  
  <p>Is this possible?</p>