get_dim_info | R Documentation |
A helper function that extracts and structures dimension-related metadata
from a given dimension structure. Used internally in get_var_structure()
and compare_var_structure()
.
get_dim_info(dim_info)
dim_info |
A list containing dimension metadata, including:
|
Retrieves structured metadata for variables in SL4 and HAR datasets.
Computes data shape and ensures consistency in dimension structures.
Helps determine observation counts and column sizes for variable summaries.
A structured list containing:
dimension_string
: The original dimension string.
dim_size
: The number of dimensions.
data_shape
: A formatted string representing the data shape (e.g., "10x20x30"
).
col_size
: The product of all dimension sizes except the first, representing column count.
n_obs
: The first dimension size, typically representing the number of observations.
Pattawee Puangchit
get_var_structure
, compare_var_structure
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.