search for: new_coloni

Displaying 1 result from an estimated 1 matches for "new_coloni".

Did you mean: new_colonies
2011 Nov 18
1
Delete Rows Dynamically Within a Loop
...ceeded. Since in each cell there can be hundreds or thousands of points I am trying to find a smart way to use another loop/similar method to: 1)go trough each point at a time 2)create a buffer a select points with different sex 3)Save the closest Male-Female (0-1) pair in another dataframe (called new_colonies) 4)Remove those points from the dataframe so that it shrinks and I don't have to consider them anymore 5) as soon as that new dataframe reaches 10 rows stop everything and go to the next cell (thus skipping all remaining points. Here is the code that I developed to be run within each cell (ri...