search for: 200000x2

Displaying 2 results from an estimated 2 matches for "200000x2".

Did you mean: 20000002
2012 Jun 28
2
Aggregate weights for a unique set of rows
...nique set of nodes (X/Y-coordinates): nodes <- matrix(c(1,2,3,4,5,6,1,2,1,4),ncol=2, byrow=T) desired Result: #nodes [,1] [,2] [1,] 1 2 [2,] 3 4 [3,] 5 6 [4,] 1 4 #weights 2 1 1 1 That is my solution, but it is very slow (typical size of nodes --> 200000x2): weights <- c(1, 1, 1, 1, 1) nodes <- matrix(c(1,2,3,4,5,6,1,2,1,4),ncol=2, byrow=T) ## to be replaced by a faster code drop.index <- duplicated(nodes) n.unique <- nodes[!drop.index, ] w.unique <- numeric(length(n.unique[,1])) lw <- length(weights) for (i in seq_along(w....
2003 Mar 20
2
Matrix problems
Hi all. I do not know if it is a bug in the windows version but i have this problem. Reading a file with 200000 rows, 2 columns and transforming into a 200000 x 2 matrix. If I try to find an element by using the which command which gives some correct indexes plus some others passing the 200000 row boundaries. If I try to reach those "outbound" indexs I get an "Error: subscript out