| brainGraph-methods {brainGraph} | R Documentation |
brainGraph generic methods
Description
These functions are S3 generics for various brainGraph-defined
objects.
groups returns the “Group” graph attribute for each graph or
observation in the object.
region.names is a generic method for extracting region names from
various brainGraph objects. These are generally convenience functions.
nregions is a generic method for extracting the number of regions from
various brainGraph objects.
Usage
## S3 method for class 'brainGraphList'
groups(x)
## S3 method for class 'corr_mats'
groups(x)
region.names(object)
## S3 method for class 'data.table'
region.names(object)
nregions(object)
Arguments
x, object |
An object |
Details
For a data.table, region.names assumes that it contains a
factor column named region.
[Package brainGraph version 3.1.0 Index]