title: multiple conditional statements in square brackets
body: <p>Is there any way to put multiple conditional statements in the square brackets in R?</p>
  
  <p>I tried something like</p>
  
  <pre><code>dataframe$column1 [dataframe$column2 == "value2" || dataframe$column3 == "value3"] &lt;- "value 1"
  </code></pre>
  
  <p>to no avail.</p>
  
  <p>I know I can just make two successive statements, but I was hoping for something more elegant.</p>