thank you so much
I did like below
matrix(1,nrow=2, ncol=2)[-which(c(FALSE,FALSE)), ]
[,1] [,2]
mycounts.filtered <- mycounts[ ! apply(mycounts, 1, sd, na.rm=TRUE) < 0.1,]
There were 50 or more warnings (use warnings() to see the first 50)
> write.table(mycounts2, file = "RMAsd.txt", dec = ".", sep = "\t", quote = FALSE)
but the output file is empty as already
why is the "ids" variable negative?
it's not negative. indexing with negative integer vectors removes those. op wanted to remove rows with sd < 0.1, that's the opposite of your solution.
Sorry Michael,
won't you tell me a solution? because really i can't get what i should do