I have the following data frame:
mydata <- data.frame(Farmer = c(1,2,3,4,5,6,7,8),
              Farmer_Year = seq(2009,2016,1),
              Total_Output = c(560,290,458,612,450,380,500,290),
              Vegetable_Out = c(354,120,330,260,380,2020,357,95))
I want to select only the farmers whose Vegetable output exceeds 60% of the total output. How do I do this with R?
 
     
     
    
 
     
    