Assume you have any type of dataframe. How would you reduce it only to rows that have at least two non-missing values (in other words, how would you omit all rows that have three or more missing values) in a tidyverse manner so that it can be passed through pipes?
            Asked
            
        
        
            Active
            
        
            Viewed 24 times
        
    0
            
            
        - 
                    1You can modify the third code block of the accepted answer to [this question](https://stackoverflow.com/questions/4862178/remove-rows-with-all-or-some-nas-missing-values-in-data-frame/4862502#4862502) (`<= 2` rather than `== 0`) – IceCreamToucan Feb 22 '20 at 20:37
- 
                    How to use that in a pipe? final %>% – J. Doe Feb 22 '20 at 20:43
- 
                    1The equivalent of `df[somevec,]` in dplyr is `df %>% filter(somevec)` – IceCreamToucan Feb 22 '20 at 20:49
