## Median centre example
median_centre(id=1, filename="median_centre_Output.txt",
points=activities)
## Median centre to shapefile example (exclude the comments below to run script)
## shp <- convert.to.shapefile(medianloc,medianatt,"id",5)
## write.shapefile(shp, "Median_Shape", arcgis=T)
Run the code above in your browser using DataLab