[R] locating a data value in 3-dimensional data set

Kehl Dániel kehld at ktk.pte.hu
Tue Apr 8 16:15:02 CEST 2014


Dear Mamuash Bukana,

is this a data frame with variable names you indicated?

you will need something like which(dataframename$variablename == x) 
but if you have more you might use >

HTH
kd
________________________________________
Feladó: r-help-bounces at r-project.org [r-help-bounces at r-project.org] ; meghatalmazó: mamuash bukana [mamushbukana at gmail.com]
Küldve: 2014. április 8. 15:50
To: r-help at r-project.org
Tárgy: [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 value
But this couldn't help me.

Any suggestion please?

Thanks

B

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
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 mailing list