jeudi 6 septembre 2018

How ro remove rows where values in column A are smaller than values in column B

I am working in R and I am trying to make an if statement based on two columns, what I would like to do is to remove every row where the value in column A is smaller than the value in column B. How can I do this? The data:

           Stock   Minimum Stock 
Product A  35      32  
Product B  43      21  
Product C  12      15  
Product D  5       6 

I would like:

           Stock   Minimum Stock 
Product C  12      15  
Product D  5       6

Aucun commentaire:

Enregistrer un commentaire