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

2012-02-06 Thread Bryan McCloskey
[i])) y_co<-which.min(abs(y-coords$NORTHING[i])) pond[i]<-depth_con[x_co,y_co] #pond of cell of interest area[i]<-length(which(depth_con==pond[i]))*400*400 #area of the pond (400m grid) depth[i]<-depth[x_co,y_co] #depth at cell of interest } Thanks

[R] Reading table data from PDF files

2012-02-03 Thread Bryan McCloskey
something more integrated that could be incorporated into R functions and scripts to handle large batches of PDFs in a more automated fashion. Has anyone used R to extract large amounts of tabular data from PDF documents? -bryan ------ Bryan McCloskey, Ph.D. IT Specialist (Data Management/Int

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

2012-01-31 Thread Bryan McCloskey
], because, even though they may be <0.6, they are not contiguous with the pond that x["A","v"] is in. Is there an easy way to do this for many points of interest in a large matrix? Thanks, -bryan -- Bryan McCloskey, Ph.D. U.S. Geological Survey St. Petersburg Coastal