get_graphab_linkset: Get linkset computed in the Graphab project

View source: R/get_graphab_linkset.R

get_graphab_linksetR Documentation

Get linkset computed in the Graphab project

Description

The function gets a linkset computed in the Graphab project

Usage

get_graphab_linkset(proj_name, linkset, proj_path = NULL)

Arguments

proj_name

A character string indicating the Graphab project name. The project name is also the name of the project directory in which the file proj_name.xml is.

linkset

A character string indicating the name of the link set whose properties are imported. The link set has been created with Graphab or using graphab_link function.

proj_path

(optional) A character string indicating the path to the directory that contains the project directory. It should be used when the project directory is not in the current working directory. Default is NULL. When 'proj_path = NULL', the project directory is equal to getwd().

Details

See more information in Graphab 2.8 manual: https://sourcesup.renater.fr/www/graphab/download/manual-2.8-en.pdf. This function works if link{get_graphab} function works correctly.

Value

A data.frame with the link properties (from, to, cost-distance, Euclidean distance)

Author(s)

P. Savary

Examples

## Not run: 
get_graphab_linkset(proj_name = "grphb_ex",
               linkset = "lkst1")

## End(Not run)

graph4lg documentation built on Feb. 16, 2023, 5:43 p.m.