Skip to contents

Add an ARU to the list of identified ARUs

Usage

add_pattern_aru_type(pattern, aru_type)

Arguments

pattern

regular expression to extract from file path

aru_type

Name of ARUtype

Examples


org_pat <- get_pattern("pattern_aru_type")

print(org_pat)
#>             barlt               SMM           SM(\\d)           S(\\d)A 
#>          "BAR-LT" "Song Meter Mini"  "Song Meter \\1"  "Song Meter \\1" 

add_pattern_aru_type("CWS\\d", "Canadian Wildlife Detector \1")

get_pattern("pattern_aru_type")
#>                             barlt                               SMM 
#>                          "BAR-LT"                 "Song Meter Mini" 
#>                           SM(\\d)                           S(\\d)A 
#>                  "Song Meter \\1"                  "Song Meter \\1" 
#>                            CWS\\d 
#> "Canadian Wildlife Detector \001" 

set_pattern("pattern_aru_type", org_pat)