Learn R Programming

HARplus (version 1.0.1)

pattern_match: Match Patterns with Optional Mixing (Internal)

Description

Compares two patterns to determine if they match, with an option to allow flexible dimension order.

Usage

pattern_match(pattern1, pattern2, mix_patterns = FALSE)

Value

Logical; TRUE if the patterns match, FALSE otherwise.

Arguments

pattern1

A character string representing the first pattern.

pattern2

A character string representing the second pattern.

mix_patterns

Logical; if TRUE, allows dimension order to be ignored during comparison.

Author

Pattawee Puangchit

Details

  • Performs case-insensitive pattern matching.

  • If mix_patterns = TRUE, allows patterns to match even if dimensions are in different order.

See Also

get_original_pattern, process_pattern, get_data_by_dims