R select entire columns where at least one value meets a condition
===

I have a large matrix, ~300 rows and 200000 cols. I want to shrink this down by selecting the entire columns that have at least one value that is > 0.5 or less than -0.5 (not just that particular value). I would like to keep the row and column names. I was able to get a matrix of true false by doing`tmp<-mymat > 0.5 | mymat < -0.5`. I want to extract all columns that have at least one `TRUE` in them. I tried simply `mymat[tmp]` but this just returns a vector of the values that meet that condition. How can I get the actual columns of the original matrix? Thanks.