text: user10039: I have  a data frame that contain lot of columns and lines, like this for example
  Column1   Column2 
  5            T1
  1            T2
  1            T3
  1            T1
  2            T1
  1            T1
  2            T1
  1            T1
  
  I want to extract just lines that have the value 1 in column 1 and Value T1 in Column 2
  So the result I want is
  Column1   Column2 
  1            T1
  1            T1
  1            T1
  
  Can you tell me please how I can do that
  
  user1194: You can simply use subset function in R and use the code given below,
      new_dataframe <- 
      subset(name_of_your_dataframe,Column1 == 1 && 
      Column2 ==  "T1")
  
  Please keep in mind that R is case sensitive and you should be careful while using the variable names.
  
original_text: 10039: <p>I have  a data frame that contain lot of columns and lines, like this for example</p>
  <pre><code>Column1   Column2 
  5            T1
  1            T2
  1            T3
  1            T1
  2            T1
  1            T1
  2            T1
  1            T1
  </code></pre>
  <p>I want to extract just lines that have the value 1 in column 1 and Value T1 in Column 2</p>
  <p>So the result I want is</p>
  <pre><code>Column1   Column2 
  1            T1
  1            T1
  1            T1
  </code></pre>
  <p>Can you tell me please how I can do that</p>
   1194: <p>You can simply use subset function in R and use the code given below,</p>
  <pre><code>    new_dataframe &lt;- 
      subset(name_of_your_dataframe,Column1 == 1 &amp;&amp; 
      Column2 ==  &quot;T1&quot;)
  </code></pre>
  <p>Please keep in mind that R is case sensitive and you should be careful while using the variable names.</p>
  