fg_get_feature {flowGraph} | R Documentation |
Retrieves a feature matrix from a given flowGraph object, the feature type, and feature name.
fg_get_feature(fg, type = "node", feature = "count")
fg |
flowGraph object. |
type |
A string indicating feature type 'node' or 'edge'. |
feature |
A string indicating feature name; |
Returns NULL
if the requested feature does not exist.
A numeric matrix of the specified feature values.
flowGraph-class
fg_get_feature_desc
fg_add_feature
fg_rm_feature
fg_get_summary
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')