rosemckeon / ploidy

How does disturbance on a landscape affect the establishment of new polyploid plant species?
3 stars 0 forks source link

Fix bug in nest_by_location() #28

Closed rosemckeon closed 5 years ago

rosemckeon commented 5 years ago

Sometimes, when used inside other functions (spotted while doing reproduction) the use of this nesting function gives warnings:

Warning messages:
1: Unknown or uninitialised column: 'plants'. 
2: Unknown or uninitialised column: 'plants'. 
3: Unknown or uninitialised column: 'plants'. 
4: Unknown or uninitialised column: 'plants'. 
5: Unknown or uninitialised column: 'plants'. 

Manual nesting does not give these errors.

rosemckeon commented 5 years ago

Not sure this is actually an issue. I think it was only happening when I had environment objects that clashed with parameter names. These warnings don't appear after running simulations anyway.