Learn R Programming

SpatialGraph (version 1.0-4)

attSGe: Add or Modify attributes in SpatialGraph edges

Description

Add or Modify attributes in SpatialGraph edges

Usage

attSGe(SG, att, eID, val, default)

Value

A SpatialGraph

Arguments

SG

SpatialGraph

att

name of the field [column] in the edge dataframe to be added/modified

eID

edge identifiers [row.names of the edge data.frame]

val

values corresponding the eID above

default

default values for edges not considered in eID above