Learn R Programming

mcmodule (version 1.1.1)

set_data_keys: Set or Get Global Data Keys

Description

Manages a global data model by either setting new data keys or retrieving the current ones. The data model consists of named lists containing column names and their associated key columns.

Usage

set_data_keys(data_keys = NULL)

Value

  • If data_keys = NULL: Returns the current global data model

  • If data_keys provided: Sets the new data model and returns invisibly

Arguments

data_keys

Optional list of lists. Each inner list must contain:

  • cols: A vector containing the column names for the data

  • keys: A vector specifying the key columns

If NULL, returns the current data model.

Examples

Run this code
print(imports_data_keys)
set_data_keys(imports_data_keys)

Run the code above in your browser using DataLab