This is my matrix
[,1] [,2]
M -1 -5
T 8 -4
W -3 9
Th 4 5
F 7 -2
I want my output to include Monday and Thursday
This is my code but I would like to see if i could use one of the apply() functions to show the output together and have more efficient code!
m[m[,1]<0 & m[,2]<0,, drop=FALSE]
m[m[,1]>0 & m[,2]>0,,drop=FALSE]
``