# MEAN CENTRE EXAMPLE
a <- mean_centre(id=1, points=activities)
str(a)
print(a)
# MEAN CENTRE TO SHAPEFILE EXAMPLE (REMOVE THE COMMENTS TO RUN)
# shp <- convert.to.shapefile(meanloc,meanatt,"id",5)
# write.shapefile(shp, "Mean_Shape", arcgis=T)
Run the code above in your browser using DataLab