R/attSGe.R

Defines functions attSGe

Documented in attSGe

attSGe <- function(SG, att, eID, val, default) {
  SG@e@data[,att] <- default
  eids <- match(eID, row.names(SG@e@data))
  SG@e@data[eids,att] <- val
  return(SG)
} # end function attSGe

Try the SpatialGraph package in your browser

Any scripts or data that you put into this service are public.

SpatialGraph documentation built on Sept. 28, 2023, 5:08 p.m.