Off topic:Filtering a matrix for the same value
0
0
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),]

R • 515 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 3198 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6