fg_rm_feature {flowGraph} | R Documentation

## Removes a feature.

### Description

Removes a feature from a given flowGraph object.

### Usage

    fg_rm_feature(fg, type = "node", feature = NULL)

### Arguments

`fg` | flowGraph object.
`type` | A string specifying the type of the feature being removed i.e. 'node' or 'edge'.
`feature` | A string indicating the unique name of the feature removed; note we cannot remove the 'node' 'count' feature type.

### Details

`fg_rm_feature` removes a specified feature matrix from the given flowGraph object `fg` updating slots `feat` and `feat_desc`. See `flowGraph-class` slot `feat` and `feat_desc` for what should be in these slots.

### Value

flowGraph object with specified feature removed.

### See Also

`flowGraph-class` `fg_add_feature` `fg_get_feature` `fg_get_feature_desc` `fg_rm_summary`

### Examples

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

     fg <- fg_rm_feature(fg, type="node", feature="prop")
     fg_get_feature_desc(fg)

[Package flowGraph version 1.2.0 Index]