as_igraph: Convert osmar object to igraph

Description Usage Arguments Value Examples

Description

Convert an osmar object to an igraph (see igraph-package).

Usage

1
as_igraph(obj)

Arguments

obj

An osmar object

Value

An igraph-package graph object

Examples

1
2
3
4
file <- system.file("extdata", "kaufstr.xml", package = "osmar2")
raw <- readr::read_file(file)
kaufstr <- as_osmar(read_xml(raw))
kaufstrGraph <- as_igraph(kaufstr)

gergness/osmar2 documentation built on May 17, 2019, 2:10 a.m.