Description Usage Arguments Details Value Note Author(s) See Also Examples
Identifies the central feature within a set of point locations.
1 | CF(id=1, filename="CF_Output.txt", points=activities)
|
id |
A unique integer to identify the CF |
filename |
A string indicating the ASCII textfile where the central feature coordinates will be written |
points |
A 2-column matrix or data frame containing the set of point observations |
Use the cfloc (coordinates) and cfdatt(attributes) to produce shapefiles using the convert.to.shapefile and write.shapefile from the shapefiles library
The result is a list of terms:
id |
Identifier for the central feature - it should be unique |
CF.x |
X-coordinate of the central feature |
CF.y |
Y-coordinate of the central feature |
Results are stored in the r.CF object and can be passed through plotting functions. This function can also be used repetitively within a loop to compute multiple CF centres from different datasets.
Randy Bui, Ron Buliung
mean_centre
, CMD
,
median_centre
1 2 3 4 5 6 | ## CF example
CF(id=1, filename="CF_Output.txt", points=activities)
## CF to shapefile example (exclude the comments below to run script)
## shp <- convert.to.shapefile(cfloc,cfatt,"id",5)
## write.shapefile(shp, "CF_Shape", arcgis=T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.