fg_rm_feature {flowGraph} | R Documentation |
Removes a feature from a given flowGraph object.
fg_rm_feature(fg, type = "node", feature = NULL)
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. |
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.
flowGraph object with specified feature removed.
flowGraph-class
fg_add_feature
fg_get_feature
fg_get_feature_desc
fg_rm_summary
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)