powered by
Extracts key columns from a mcnode's associated data.
mc_keys(mcmodule, mc_name, keys_names = NULL)
A data frame with scenario_id and requested key columns.
(mcmodule object). Module containing node.
(character). Node name to extract keys from.
(character vector, optional). Column names to extract. If NULL, uses all keys for the node. Default: NULL.
keys_df <- mc_keys(imports_mcmodule, "w_prev")
Run the code above in your browser using DataLab