fg_get_feature {flowGraph} | R Documentation

## Retrieves a feature matrix.

### Description

Retrieves a feature matrix from a given flowGraph object, the feature type, and feature name.

### Usage

    fg_get_feature(fg, type = "node", feature = "count")

### Arguments

`fg` | flowGraph object.
`type` | A string indicating feature type 'node' or 'edge'.
`feature` | A string indicating feature name;

### Details

Returns `NULL` if the requested feature does not exist.

### Value

A numeric matrix of the specified feature values.

### See Also

`flowGraph-class` `fg_get_feature_desc` `fg_add_feature` `fg_rm_feature` `fg_get_summary`

### Examples

     data(fg_data_pos30)
     fg <- flowGraph(fg_data_pos30$count, class=fg_data_pos30$meta$class,
                     prop=FALSE, specenr=FALSE,
                     no_cores=1)

     feature_matrix <- fg_get_feature(fg, type='node', feature='count')

[Package flowGraph version 1.2.0 Index]