Displaying 4 results from an estimated 4 matches for "dreamworx".
2009 Jul 02
2
matching rows in matrices
I have a matrix such as this,
[,1] [,2] [,3]
[1,] 1 1 2
[2,] 2 5 5
and a larger matrix such as this,
a b
[1,] 1 5
[2,] 2 5
[3,] 4 9
[4,] 5 8
[5,] 7 8
[6,] 7 10
[7,] 9 10
what I want to do is check the number of times the columns in the first
matrix appear as rows in the second matrix. So for instance in this example
1,5 and 2,5 appear in both so I'd want
2009 Jul 06
2
Extracting only the non-repeated rows of matrices
I have 2 matrices. One which contains a complete set of row combinations.
Another which contains a subset of the first. What I would like to extract
is the rows which are in the first but not repeated in the second. For
instance if the following were my two matrices,
A
[,1] [,2] [,3] [,4]
[1,] 1 2 3 4
[2,] 1 2 3 5
[3,] 1 2 3 6
[4,] 1 2 3
2009 Jun 26
1
Deleting repeated rows
Appologies if this is a simple problem. I have a matrix which is 86x3 and
each row contains three integers. The problem I have is that some of the
rows of integers are repeated in other rows and I only wish to have one copy
of these rows.
Is there a function that I can use which will identify these repeated rows
and delete them from the matrix? I have searched for help with this problem
but the
2009 Jun 26
0
R: Deleting repeated rows
...1 2 3
[2,] 1 1 2
[3,] 1 2 3
[4,] 4 7 5
> unique(mat)
[,1] [,2] [,3]
[1,] 1 2 3
[2,] 1 1 2
[3,] 4 7 5
Stefano
-----Messaggio originale-----
Da: r-help-bounces at r-project.org
[mailto:r-help-bounces at r-project.org]Per conto di dreamworx
Inviato: venerd? 26 giugno 2009 15.10
A: r-help at r-project.org
Oggetto: [R] Deleting repeated rows
Appologies if this is a simple problem. I have a matrix which is 86x3 and
each row contains three integers. The problem I have is that some of the
rows of integers are repeated in other rows and...