Skip to contents

Extracts metadata fields from supported g6tr.lx objects.

Usage

lx_get_metadata(x, keys = NULL)

Arguments

x

Object to read metadata from. Supported classes are lx_data and lx_model.

keys

Optional metadata keys to extract. If NULL (default), all supported metadata fields are returned as a named list. If a single key is provided, the value is returned directly (not wrapped in a list). If multiple keys are provided, a named list is returned.

Value

A metadata value (single key case) or a named list of metadata values.

Examples

if (FALSE) { # \dontrun{
lx_get_metadata(example_lx_model)
lx_get_metadata(example_lx_model, keys = "experiment")
} # }