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. I have a dataset with three columns. The first