Hello everyone,
I am pretty new in the R World. I am wondering whether remove the rows according to the total number of them. I examined the cheat sheet of dplyr and some examples on the internet. All of them were concerned with single values on rows/columns.
My samples look as follows (normally I have matrix sized 212x 390 ):
So what I want to do: If the total number of each gene on the rows is less than 10, for example, the row must remove.
for (number in seq(4)) {
if (sum(mymat[number,])< 10){
mymat<- mymat[-number,]
}
}
Well, the code I wrote works end of the day. But, I would like to perform with dplyr package.
Which dplyr function I should use?
Thank you in advance,
Omer