Re: [R] help me avoid nested for() loops!

2009-11-20 Thread David Winsemius
On Nov 20, 2009, at 5:05 PM, Andrew Barr wrote: Hi R folks, I have a massive array (object name "points") in the following form [,1] [,2] [1,] 1369 22 [2,] 1370 22 [3,] 1368 23 [4,] 1369 23 [5,] 1370 23 [6,] 1371 23 (10080 rows truncated) mtx <- matrix(scan(textConnectio

Re: [R] help me avoid nested for() loops!

2009-11-20 Thread Charles C. Berry
On Fri, 20 Nov 2009, Andrew Barr wrote: Hi R folks, I have a massive array (object name "points") in the following form [,1] [,2] [1,] 1369 22 [2,] 1370 22 [3,] 1368 23 [4,] 1369 23 [5,] 1370 23 [6,] 1371 23 (10080 rows truncated) These represent pixel coordinates of inter

Re: [R] help me avoid nested for() loops!

2009-11-20 Thread Dylan Beaudette
?dist On Friday 20 November 2009, Andrew Barr wrote: > Hi R folks, > > I have a massive array (object name "points") in the following form > > [,1] [,2] > [1,] 1369 22 > [2,] 1370 22 > [3,] 1368 23 > [4,] 1369 23 > [5,] 1370 23 > [6,] 1371 23 > (10080 rows truncated) > > Thes

[R] help me avoid nested for() loops!

2009-11-20 Thread Andrew Barr
Hi R folks, I have a massive array (object name "points") in the following form [,1] [,2] [1,] 1369 22 [2,] 1370 22 [3,] 1368 23 [4,] 1369 23 [5,] 1370 23 [6,] 1371 23 (10080 rows truncated) These represent pixel coordinates of interest in a jpeg image. I need to find the d