metavariable_variable_descendants: Extract metavariables' descendant variables

View source: R/semantic_enrich.R

metavariable_variable_descendantsR Documentation

Extract metavariables' descendant variables

Description

Formats the output of metavariable_info for easier interpretation of each metavariable's descendant variables

Usage

metavariable_variable_descendants(metavariable_info_output)

Arguments

metavariable_info_output

Output tibble of metavariable_info

Details

Not part of the standard semantic enrichment pipeline as this function just produces a simplified version of the output of metavariable_info.

The output of metavariable_info is converted to a tibble, filtered to only include metavariables with highest information content for the variable set. The tibble has three columns describing a metavariable, its information content, and its descendant variables.

Value

A tibble describing each metavariable, its information content, and its descendant variables

See Also

node_IC_zhou

Other semantic enrichment functions: join_vars_to_ontol(), metavariable_agg(), metavariable_info()

Examples

data(example_ontology)
require(magrittr)
example_ontology %>%
join_vars_to_ontol(example_mapping_file, root = "root") -> joined_ontol

mv_info <- metavariable_info(joined_ontol)
metavariable_variable_descendants(mv_info)

eHDPrep documentation built on June 7, 2023, 6:09 p.m.