get_original_pattern {HARplus}R Documentation

Retrieve the Original Dimension Pattern (Internal)

Description

A helper function that finds the original dimension pattern name in an SL4 or HAR dataset that matches a given pattern. Used internally in get_data_by_dims().

Usage

get_original_pattern(pattern, data_obj, mix_patterns = FALSE)

Arguments

pattern

Character. The pattern to search for in dimension structures.

data_obj

An SL4 or HAR object containing dimension information.

mix_patterns

Logical. If TRUE, allows dimension order to vary when matching patterns.

Details

Value

The original dimension pattern name as a character string, or NULL if no match is found.

Author(s)

Pattawee Puangchit

See Also

pattern_match, process_pattern, get_data_by_dims


[Package HARplus version 1.0.1 Index]