
Last chance! 50% off unlimited learning
Sale ends in
Identifies the central feature within a set of point locations.
CF(id=1, points=NULL, verbose=FALSE)
The returned result is a list:
The type of calculation results stored in the object: BOX, SDD, SDE, CF, or CF2PTS
The date and time that the function was run
Locations pertinent for the BOX that can be used with ATTRIBUTES if wishing to build a vector point file for geographic data outside of this pacakge.
Coordinates and identifiers used for plotting.
Attributes for the output BOX that can be used with LOCATIONS coordinates if wishing to build a vector point file for geographic data outside of this package.
Identifier for the central feature - it should be unique
X-coordinate of the central feature
Y-coordinate of the central feature
A unique integer to identify the CF
A 2-column matrix or data frame containing the set of point observations
Boolean flag for verbose output to monitor
Randy Bui, Ron Buliung, Tarmo K Remmel
Use the LOCATIONS element in the output list object along with the ATTRIBUTES elements can be used to produce shapefiles or other vector point files for geographic data.
mean_centre
,
median_centre
# CF EXAMPLE
data(activities)
a <- CF(id=1, points=activities)
str(a)
print(a)
# BOX TO SHAPEFILE EXAMPLE (REMOVE THE COMMENTS TO RUN)
# shp <- convert.to.shapefile(a$LOCATIONS, a$ATTRIBUTES, "id", 5)
# write.shapefile(shp, "CF_Shape", arcgis=T)
Run the code above in your browser using DataLab