Re: [R] getting data associated with coordinates in a spatial data frame

2011-10-13 Thread Bailey, Daniel
Woohoo! Thank you Sarah and Michael. You are rock stars! Daniel -Original Message- From: Sarah Goslee [mailto:sarah.gos...@gmail.com] Sent: Thursday, October 13, 2011 11:54 AM To: Bailey, Daniel Cc: r-help@r-project.org Subject: Re: [R] getting data associated with coordinates in a

Re: [R] getting data associated with coordinates in a spatial data frame

2011-10-13 Thread Bailey, Daniel
.x & coords[,"y"] == my.y, "leachate"] I can't test it on your data, but I think this will do it. data(meuse.grid) coordinates(meuse.grid) <- ~x+y M = meuse.grid coords = coordinates(M) M[(coords[,"x"] == 179220) & (coords[,"y"] == 329620), &qu

Re: [R] getting data associated with coordinates in a spatial data frame

2011-10-13 Thread Bailey, Daniel
quot;] with 1 slots .. .. ..@ projargs: chr NA -Original Message- From: R. Michael Weylandt [mailto:michael.weyla...@gmail.com] Sent: Thursday, October 13, 2011 11:13 AM To: Bailey, Daniel Cc: Sarah Goslee; r-help@r-project.org Subject: Re: [R] getting data associated with coordinates

Re: [R] getting data associated with coordinates in a spatial data frame

2011-10-13 Thread Bailey, Daniel
a single column "coordinates" with the format (0, 17) for x and y, how do you then call or manipulate data at a specific location? The following: e[e$coordinates==(0,17),] Doesn't work. -Original Message- From: Sarah Goslee [mailto:sarah.gos...@gmail.com] Sent: Wednesd

[R] getting data associated with coordinates in a spatial data frame

2011-10-12 Thread Bailey, Daniel
If I know the specific coordinate in a spatial data frame, how can I access the data at that coordinate? My coordinates are labeled "x" and "y" in a data.frame "e". The data is in column "leachate". I want to say, basically: e$leachate@coordinates(2,3). Thanks