[R-sig-eco] help with script

Kátia Emidio kat.emidio at gmail.com
Thu Aug 11 19:44:29 CEST 2011


Dear all,
Attached there is a table, with columns "subparcel", "nrindividual",
"diameter".
Within each subparcel, for each "nrindividual" I need to sum up the diameter
of others "nrindividuals"  lying in the subparcel, which "diameter" is
larger than or equal the fixed "nrindividual", excluding the diameter of
the  fixed individual.
To summarize, I need to visit each individual inside the subparcel and find
the others individuals in the same sub-parcel that have the diameter larger
than or equal the visited individual and sum their diameter and return these
information in a table, having "visited individual", "Subparcel", "diameter
sum". I also need to perform these for n subparcels!
Thanks!

Katia Emidio
-------------- next part --------------
subparcels	nrindividual	diameter
1	1	35,5
1	2	35,5
1	3	38,2
1	4	13,5
1	5	10,1
1	6	20,1
2	1	10,5
2	2	40,1
2	3	41,7
2	4	42,6
2	5	22,2
2	6	13
2	7	51,5
2	8	51,2
2	9	50,9
2	10	10,5
3	1	20,2
3	2	21
3	3	21,5
3	4	25
3	5	26,1
3	6	26,6
3	7	18,1
3	8	20,8
4	1	28,7
4	2	28,7
4	3	33,6
4	4	17,3
4	5	20
4	6	14,6
4	7	13,2


More information about the R-sig-ecology mailing list