Learn R Programming

IFC (version 0.2.1)

data_rm_graphs: Remove Graph from an IFC_data Object

Description

Removes graphs from an already existing `IFC_data` object.

Usage

data_rm_graphs(obj, graphs, list_only = TRUE, adjust_graph = TRUE, ...)

Value

an `IFC_data` object or a list of elements impacted by removal depending on 'list_only' parameter.

Arguments

obj

an `IFC_data` object extracted by ExtractFromDAF(extract_features = TRUE) or ExtractFromXIF(extract_features = TRUE).

graphs

an integer vector of graph(s) to remove within 'obj'.

list_only

whether to return a list of elements that will be impacted by the removal. Default is TRUE. If FALSE then modified object will be returned.

adjust_graph

whether to try to adjust graph(s) when possible. Default is TRUE.
-TRUE, graph(s) will be kept if possible using only regions, pops it depends that can be found in 'obj',
-FALSE, graph(s) will be kept only if all features, regions, pops it refers to are found in 'obj',
-NA, graph(s) will be removed no matter if features, regions, pops it refers to are found in 'obj'.

...

Other arguments to be passed.