get_dim_patterns | R Documentation |
Extracts and lists unique dimension patterns (e.g., REG*COMM
, REG*REG*ACTS
) from one or more datasets.
get_dim_patterns(..., keep_unique = FALSE)
... |
One or more structured SL4 or HAR objects containing dimension information. |
keep_unique |
Logical. If |
Extracts dimension structure details from the dataset.
If multiple datasets are provided, combines their dimension information.
If keep_unique = TRUE
, returns only distinct dimension patterns.
A data frame containing:
DimPattern
: The unique dimension patterns.
Pattawee Puangchit
get_dim_elements
, get_var_structure
# Import sample data:
sl4_data <- load_sl4x(system.file("extdata", "TAR10.sl4", package = "HARplus"))
sl4_data2 <- load_sl4x(system.file("extdata", "SUBT10.sl4", package = "HARplus"))
# Extract dimension patterns
get_dim_patterns(sl4_data)
# Extract only unique dimension patterns across datasets
get_dim_patterns(sl4_data, sl4_data2, keep_unique = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.