# MEDIAN CENTRE EXAMPLE
a <- median_centre(id=1, points=activities)
str(a)
print(a)
# MEDIAN CENTRE TO SHAPEFILE EXAMPLE (REMOVE THE COMMENTS TO RUN)
# shp <- convert.to.shapefile(a$medianloc, a$medianatt, "id", 5)
# write.shapefile(shp, "Median_Shape", arcgis=T)
Run the code above in your browser using DataLab