rSurvey.r error now resolved, tested with 10000 runs using different occurrence coordinates.