Skip to content
Prev 304120 / 398513 Next

remove column

On 25-08-2012, at 02:11, Kate Dresh wrote:

            
This works for me without errors. But it won't do what you want.
Yes.
For example like this

k <- sapply(file,function(x) all(x==1))
file[,-which(k)]

or

file[,sapply(file,function(x) !all(x==1))]    


Berend