I have a vector:
table(FilterGenes)
FilterGenes
FALSE TRUE
74 5
I'd like to see only TRUE names.
I have a vector:
table(FilterGenes)
FilterGenes
FALSE TRUE
74 5
I'd like to see only TRUE names.
With respect to showing true
values from the vector you could simply do:
ran.vec <- rep(c(F,T,F), 10)
ran.vec[ran.vec==TRUE]
I reckon that you want to filter your data frame by column having the true
value. This could look like that:
data(mtcars)
mtcars$someTF <- mtcars$am == 1
mtcars[mtcars$someTF == TRUE,]