search for: poly2

Displaying 2 results from an estimated 2 matches for "poly2".

Did you mean: poly
2010 Oct 25
1
calculate area between intersecting polygons
Dear list: I am trying to calculate the intersection area between two irregular polygons (see example data below). set.seed(1234) theta <- seq(0, 2 * pi, length=(100)) poly1<- cbind(c(0 + 1 * cos(theta) + rnorm(100, sd=0.1)), c(0 + 2 * sin(theta))) poly2<- cbind(c(0 + 2 * cos(theta) ), c(-1 + 1.5 * sin(theta)+ rnorm(100, sd=0.1))) plot(x, y, type = "n", , xlim=c(-5,5), ylim=c(-5,5)) polygon(poly1) polygon(poly2) My data correspond to geographical positions, therefore I cannot generate it using equations as I did in the examp...
2003 Jun 17
2
Paste and namespace
Hi, my doubt is very simple. I'm sure I've seen someone using something like this before, but unfortunatelly my searches in the archives were useless. Well, I have some objects called after a name that has a number attached to it, varying. Let's say I have: > ls poly1 poly2 poly3 poly4 poly5 poly6 ... I would like to access these objects using a for(), in which I could do something like paste("poly",i,sep=''). For i = 4, for instance I get > paste("poly",4,=sep'') [1] "poly8" Which is a string. What command should...