Here is my dataframe:
df <- data.frame(a = c(1:10),
                 b= c(11:15, NA, NaN, '', 20, 22))
a   b
1   11          
2   12          
3   13          
4   14          
5   15          
6   NA          
7   NaN         
8               
9   20          
10  22
what I need to do is to extract rows where the value in column b is not a number.
In this case, I need to extract rows where column a is 7,8,9. I definitely need a general solution that work for any large dataset.
I tried:
df %>% filter(!is.numeric(b))
But it does not work. I do not have any clue how to achieve that. thanks in advance for any help.
 
     
    