powered by
Count different values for a specified parameter across query strings
count_param_values(query, param_name, sort = FALSE, name = "n")
A tibble with each value of the specified parameter and how often it occurs.
A character vector of query strings.
The name of the parameter whose values to count.
Logical indicating whether to sort the output by count. Defaults to FALSE.
The name of the column containing the counts. Defaults to 'n'.
count_param_values(c("param1=value1¶m2=value2", "param1=value3"), "param1")
Run the code above in your browser using DataLab