metavariable_variable_descendants {eHDPrep} | R Documentation |
Formats the output of metavariable_info
for easier
interpretation of each metavariable's descendant variables
metavariable_variable_descendants(metavariable_info_output)
metavariable_info_output |
Output tibble of
|
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.
A tibble describing each metavariable, its information content, and its descendant variables
Other semantic enrichment functions:
join_vars_to_ontol()
,
metavariable_agg()
,
metavariable_info()
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)