Skip to contents

retrieve Barrier ID according to its name in the barrier database

Usage

query_barrier(config = config_ambre, barrierName, na.rm = FALSE)

Arguments

config

list configuration file default value is config_ambre dataset

barrierName

character Name of the barrier you want to find the ID

na.rm

boolean FALSE by default

Value

barrierID

Examples

query_barrier(barrierName = "Q.1 - Activated Sludge")
#> [1] 1
query_barrier(barrierName = c("Q.1 - Activated Sludge", "Q.2 - Maturation Pond"))
#> [1] 1 2
query_barrier(barrierName = "P.9 - Peeling, P.7 - Cooking")
#> [1] 14 16