clusters {HDSpatialScan}R Documentation

Creation of the matrix of potential clusters

Description

This function creates the matrix in which each column corresponds to a potential clusters, taking the value 1 when a site (or an individual) is in the potential cluster and 0 otherwise.

Usage

clusters(sites_coord, system, mini, maxi, type_minimaxi, sites_areas)

Arguments

sites_coord

numeric matrix. Matrix of the coordinates of the sites (or the individuals, in that case there can be many individuals with the same coordinates). It has the same number of rows as the number of sites or individuals and 2 columns.

system

character. System in which the coordinates are expressed: "Euclidean" or "WGS84".

mini

numeric. Minimum for the clusters (see type_minimaxi).

maxi

numeric. Maximum for the clusters (see type_minimaxi).

type_minimaxi

character. Type of minimum and maximum: "area": the minimum and maximum area of the clusters, "radius": the minimum and maximum radius, or "sites/indiv": the minimum and maximum number of sites or individuals in the clusters.

sites_areas

numeric vector. Areas of the sites. It must contain the same number of elements than the rows of sites_coord. If the data is on individuals and not on sites, there can be duplicated values. By default: NULL

Value

The list of the following elements:


[Package HDSpatialScan version 1.0.4 Index]