Learn R Programming

GeoFIS (version 1.1.1)

DataInZone: Classify data in management zones

Description

Classify data in management zones of maps obtained with the Zoning algorithms.

Usage

DataInZone(data, maps, use_id = FALSE)

Value

sp::SpatialPointsDataFrame or sp::SpatialMultiPointsDataFrame object depending of the type of input data. Return table of membership of each point in the zones for each map, the input data and a column for each map processed (named "map{number of zones in the map}") with the class of each point.

Arguments

data

sp::SpatialPointsDataFrame or sp::SpatialMultiPointsDataFrame object, The input data.

maps

sp::SpatialPolygonsDataFrame object, or a list of sp::SpatialPolygonsDataFrame, The map or list of maps to process.

use_id

boolean, Use the id attribute of the zone in the map if TRUE, or the order index (1-based indexed) of the zone in the map if FALSE (the default).