Re: [R-sig-Geo] How do you produce a output table containing distances between mineral grains at various azimuthal directions?

2011-02-12 Thread Sarah Goslee
Michael, Do you have quantitative data, or just images. If the former, seeing an example of what you have and what you'd like the output to be would be very helpful. If the latter, a program like ImageJ (free and Open Source; google for it) might be more what you need. Sarah On Sat, Feb 12, 2011

[R-sig-Geo] classify point by nearest polygon

2011-02-12 Thread Corey Chivers
I have a large number of points which I would like to associate with either the polygon (in my case, lake) they are in or nearest to. I have succeeded in classifying the points which are actually in a polygon using overlay(). I have scoured around looking for a solution to identifying the nea

[R-sig-Geo] How do you produce a output table containing distances between mineral grains at various azimuthal directions?

2011-02-12 Thread Michael Stillwagon
I am using *R* and I am a senior at Western Carolina University and working on my senior thesis and the data set in which I have are images of mineral thin sections all separated into different groups of grains, magnetite, quartz, etc.. either being a vector layer or a raster layer or any other ima

Re: [R-sig-Geo] Help on extract function

2011-02-12 Thread Roger Bivand
On Sat, 12 Feb 2011, Sean O'Riordain wrote: Hi Rahul, First look at str(polygon, max.level=2) to understand how a shapefile is represented in R, then have a look at str(polygon@data) One of the major strengths of the raster package is that it encapsulates much of the lower-level detail tha

Re: [R-sig-Geo] Help on extract function

2011-02-12 Thread Edzer Pebesma
On 02/12/2011 02:05 PM, Sean O'Riordain wrote: > Hi Rahul, > > First look at > str(polygon, max.level=2) > to understand how a shapefile is represented in R, then have a look at > str(polygon@data) > which is a dataframe - you can add a new column to this dataframe like... > polygon@data$n

Re: [R-sig-Geo] Help on extract function

2011-02-12 Thread Sean O'Riordain
Hi Rahul, First look at str(polygon, max.level=2) to understand how a shapefile is represented in R, then have a look at str(polygon@data) which is a dataframe - you can add a new column to this dataframe like... polygon@data$newcolumn <- 1:nrow(polygon@data) i.e you can treat this dataframe