Learn R Programming

alcyon (version 0.7.0)

unlinkRefs,AxialShapeGraph-method: Unlink two Axial Lines (refs)

Description

Unlink two lines on an Axial ShapeGraph using their refs

Usage

# S4 method for AxialShapeGraph
unlinkRefs(map, fromRef, toRef, copyMap = TRUE)

Value

A new Axial ShapeGraph with unlinked lines

Arguments

map

An Axial ShapeGraph

fromRef

Ref of the first unlink line

toRef

Ref of the second unlink line

copyMap

Optional. Copy the internal sala map

Examples

Run this code
mifFile <- system.file(
    "extdata", "testdata", "barnsbury",
    "barnsbury_small_axial_original.mif",
    package = "alcyon"
  )
  sfMap <- st_read(mifFile,
    geometry_column = 1L, quiet = TRUE
  )
  shapeGraph <- as(sfMap, "AxialShapeGraph")
unlinkRefs(shapeGraph, 12L, 34L)

Run the code above in your browser using DataLab