get_graphab_linkset_cost {graph4lg}R Documentation

Get cost values associated with a linkset in a Graphab project

Description

The function extracts the cost values associated with a linkset in a Graphab project

Usage

get_graphab_linkset_cost(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 will be created.

linkset

(optional, default=NULL) A character string indicating the name of the link set used to create the graph. Link sets can be created with graphab_link.

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().

Value

The function returns a data.frame with the cost values corresponding to every raster code value.

Author(s)

P. Savary

Examples

## Not run: 
proj_name <- "grphb_ex"
get_graphab_linkset_cost(proj_name = proj_name,
               linkset = "lkst1")

## End(Not run)

[Package graph4lg version 1.8.0 Index]