extraction: Extraction of object from file or object

Description Usage Arguments Details Value See Also

Description

Extraction of object from file or object

'extractStructure' detects the format of the structure file and extract the structure of the network. It expects a matrix with 2 or 3 columns (adjacency list) or a square matrix (adjacency matrix)

'extractBasalActivity' detects if the a list of names or a file perform the extraction if necessary. It expects a vector or an object convertible to a vector.

'extractMIDAS' detects if the argument is a MIDAS dataset or the name of a file containing such dataset. It expects a matrix in MIDAS format (See Details).

Usage

1
2
3
4
5
extractStructure(to_detect, names = "", adj = FALSE)

extractBasalActivity(to_detect)

extractMIDAS(to_detect)

Arguments

to_detect

An object to check or a string. A string is interpreted as a path to a file containing a matrix compatible with the target object.

adj

Boolean, whether a 2 or 3 columns matrix in to_detect should be interpreted as an adjacency matrix

name

Name for the structure. Extracted automatically from the file name if used.

Details

A MIDAS format matrix is a matrix with specific column names:

Value

'extractStructure' returns a C++ object of class 'ModelStructure'

'extractBasalActivity' returns vector of character

'extractMIDAS' returns a matrix or a data.frame under MIDAS format

See Also

readMIDAS


MathurinD/STASNet documentation built on May 28, 2019, 1:50 p.m.