How to select specific lines and specific columns
You can simply use subset function in R and use the code given below,
    new_dataframe &lt;- 
    subset(name_of_your_dataframe,Column1 == 1 &amp;&amp; 
    Column2 ==  &quot;T1&quot;)

Please keep in mind that R is case sensitive and you should be careful while using the variable names.