Re: [R] Selecting contiguous, irregularly-shaped sets of values from arrays

2012-02-06 Thread Bryan McCloskey
NA > > Hope this helps. > > Best wishes, > > Chris Campbell > MANGO SOLUTIONS > Data Analysis that Delivers > +44 1249 767700 > > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of B

Re: [R] Selecting contiguous, irregularly-shaped sets of values from arrays

2012-02-01 Thread Chris Campbell
s that Delivers +44 1249 767700 -Original Message----- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Bryan McCloskey Sent: 31 January 2012 19:58 To: r-help@r-project.org Subject: [R] Selecting contiguous, irregularly-shaped sets of values from arrays All

[R] Selecting contiguous, irregularly-shaped sets of values from arrays

2012-01-31 Thread Bryan McCloskey
All, I am attempting to select all of the contiguous elements of a matrix that meet some criterion. I.e., values that would be contained within an irregular area defined by a "contour" applied around point of interest. So, if I have a matrix x as follows: > x <- matrix(rnorm(25), nrow=5, ncol=