pattern_match {HARplus} | R 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 |
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
[Package HARplus version 1.0.1 Index]