[R] locating a data value in 3-dimensional data set
mamushbukana at gmail.com
Tue Apr 8 18:54:54 CEST 2014
Many thanks to you all; specially to Frede.
which(3ddata$variablename>=x,arr.ind=TRUE) answers my question
On Tue, Apr 8, 2014 at 11:33 AM, Frede Aakmann Tøgersen
<frtog at vestas.com> wrote:
> I know there is a arr.index (or something like that, I'm not near my R
> right now) argument to which (). I have used it for 2-dim arrays and never
> for higher dimensions. But try it out by setting the argument to TRUE.
> Br. Frede
> Sendt fra Samsung mobil
> -------- Oprindelig meddelelse --------
> Fra: mamuash bukana
> Dato:08/04/2014 15.51 (GMT+01:00)
> Til: r-help at r-project.org
> Emne: [R] locating a data value in 3-dimensional data set
> I have a 3-dimentional data set with dimensions "longitude",
> "latitude", and "time". Unfortunately, when I look at the range of
> values in the data set, I noticed some very extremely large(positive
> and negative) values which are unexpected to be there. So I wanted to
> point-out the location (lon, lat and time) which these extreme values
> correspond to in order to see what is happening there. But I could not
> point-out these grid points and time.
> I tried:
> which(3ddata==x) # 3ddata is name of data set, x is the observed extreme
> But this couldn't help me.
> Any suggestion please?
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help