I have the following dataset
df<-data.frame(c(1,2,1),c(2,1,3), c(1,3,4))
let say that I want to select the columns which contain a value equal or higher than 3 (i.e columns 2 and 3)
I managed to to find the logical argument using df >= 3
and to index with which(df>=3)
but I struggle selecting the columns.
Filter
seems like a good option here: