pattern_match: Match Patterns with Optional Mixing (Internal)

View source: R/utils.R

pattern_matchR Documentation

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)

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.

Details

  • Performs case-insensitive pattern matching.

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

Value

Logical; TRUE if the patterns match, FALSE otherwise.

Author(s)

Pattawee Puangchit

See Also

get_original_pattern, process_pattern, get_data_by_dims


HARplus documentation built on April 4, 2025, 4:14 a.m.