Entering edit mode
5.9 years ago
fp89
▴
30
Hello, I have a matrix with samples in columns, pathways names in rows and p values in each cell. I would like to subset the matrix based on the cell values, e.g cell <0.05. I've tried to do it using this function. Is it correct? Thanks in advance.
matrix_filt<-matrix[which(matrix<0.05),]
matrix_filt<-matrix_filt[!duplicated(matrix_filt),]