spathialBoundaryIds: Select starting and ending points

Description Usage Arguments Value Examples

View source: R/runFunctions.R

Description

Get the coordinates of the starting and ending points

Usage

1
spathialBoundaryIds(X, X_labels = NULL, mode = 1, from = NULL, to = NULL)

Arguments

X

data points

X_labels

labels of the data points

mode

strategy for boundary selection

  • 1 - selected by the user

  • 2 - centroids

  • 3 - insert the row name of the starting and ending points

from

starting class or row name of the starting point

to

ending class or row name of the ending point

Value

A list of objects

Examples

1
2
3
4
5
6
# Load data matrix X
load(system.file('extdata','X.rda',package='spathial',mustWork=TRUE))
# Load description vector X_labels
load(system.file('extdata','X_labels.rda',package='spathial',mustWork=TRUE))
# Run spathialBoundary
boundaryRes <- spathialBoundaryIds(X, X_labels, mode=2, from=3, to=6)

spathial documentation built on April 14, 2020, 6:41 p.m.