similar to: R: Deleting repeated rows

Displaying 6 results from an estimated 6 matches similar to: "R: Deleting repeated rows"

2009 Jun 12
0
R: Creating this vector, any suggetions?
try this > a<-c(1, 6, 8, 9) > 1*(1:10 %in% a) [1] 1 0 0 0 0 1 0 1 1 0 Stefano -----Messaggio originale----- Da: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]Per conto di njhuang86 Inviato: Friday, June 12, 2009 4:45 PM A: r-help at r-project.org Oggetto: [R] Creating this vector, any suggetions? Suppose I have the first vector: c(1, 6, 8, 9) I will
2009 Sep 23
0
R: Function to check if a vector contains a given value?
?any any(x==2) Stefano -----Messaggio originale----- Da: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]Per conto di Dimitri Liakhovitski Inviato: mercoled? 23 settembre 2009 17.38 A: R-Help List Oggetto: [R] Function to check if a vector contains a given value? Dear R'rs, is there a function that checks if a given vector contains a certain value. E.g.,
2010 Aug 07
2
R: Confidence Intervals for logistic regression
a closer look to the help on predict.glm will reveal that the function accepts a 'type' argument. In you case 'type = response' will give you the results in probabilities (that it seems to be what you are looking for). There also is an example on use of the 'type' argument at the end of the page. Stefano -----Messaggio originale----- Da: r-help-bounces at r-project.org
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 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