assignIDs: Assign ID numbers to samples

Description Usage Arguments Value Examples

Description

assignIDs attempts to assign ID numbers to contiguous regions.

Usage

1
2
assignIDs(data, xCoord = "x", yCoord = "y",
  neighborhood = "tertiary")

Arguments

data

The dataset containing x- and y-coordinates.

xCoord

A character string specifying the name of the x-coordinate variable.

yCoord

A character string specifying the name of the y-coordinate variable.

neighborhood

A character string specifying the neighborhood structure to be considered. The options are "primary", "secondary", and "tertiary".

Value

The dataset appended with a variable called "assignID". This variable provides the assigned IDs as a numeric variable.

Examples

1
2
data("TAMdata")
TAMdata <- assignIDs(TAMdata)

cammiller/imagingPC documentation built on June 28, 2019, 12:04 a.m.