Learn R Programming

brainGraph (version 3.1.0)

brainGraph-methods: 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 brainGraphList
groups(x)

# S3 method for corr_mats groups(x)

region.names(object)

# S3 method for 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.