title: Create a logical vector in R and use which function
body: <p>I have a dataset with three columns. The first column is type, second column is area and third column is worth. I want to write a logical vector such that the type =1 , area = 3 and worth = 6. I was able to create the data frame using subset but I couldn't create a logical vector. </p>
  
  <pre><code>hello &lt;- read.csv("type.csv")
  hello1 &lt;- subset(hello, type==1 &amp; area ==3 &amp; worth ==6)
  </code></pre>
  
  <p>There are many NA values in worth column.
  The data set is <a href="https://www.dropbox.com/s/gjjwmnr8uxmy18y/type.csv" rel="noreferrer">https://www.dropbox.com/s/gjjwmnr8uxmy18y/type.csv</a></p>
  
  <p>Thanks. </p>
  
  <p>Jdbaba</p>