Displaying 1 result from an estimated 1 matches for "tp20405964p20406333".
2008 Nov 09
2
Delete rows from matrix having at least one zero value
Hi,
I have a further question about matrix manipulation.
Imagine the following two matrices:
> test
[,1] [,2] [,3] [,4]
[1,] 1 0 6 4
[2,] 2 5 7 5
[3,] 3 6 8 6
[4,] 4 0 0 0
> matrix(is.element(test,0), ncol=4)
[,1] [,2] [,3] [,4]
[1,] FALSE TRUE FALSE FALSE
[2,] FALSE FALSE FALSE FALSE
[3,] FALSE FALSE FALSE FALSE
[4,] FALSE