gs_features-utils: Manipulate node features in a GraphSpace object

gs_features-utilsR Documentation

Manipulate node features in a GraphSpace object

Description

Utilities for extracting and adding node-associated features stored in the fdata container of a GraphSpace object.

Usage

gs_fetch_features(x, vars = NULL, as_df = FALSE)

gs_add_features(x, data)

Arguments

x

A GraphSpace object.

vars

Character vector specifying feature names to extract. If NULL, all features are returned.

as_df

Logical. If TRUE, returns a data.frame. Otherwise returns the original backend representation.

data

A matrix-like or data.frame object containing node features. Rows must correspond to node identifiers.

Value

  • gs_fetch_features() returns a matrix-like object or data.frame containing the selected node features.

  • gs_add_features() returns a modified GraphSpace object.


RGraphSpace documentation built on June 13, 2026, 9:06 a.m.