count_param_values: Count different values for a specified parameter across query...

View source: R/count.R

count_param_valuesR Documentation

Count different values for a specified parameter across query strings

Description

Count different values for a specified parameter across query strings

Usage

count_param_values(query, param_name, sort = FALSE, name = "n")

Arguments

query

A character vector of query strings.

param_name

The name of the parameter whose values to count.

sort

Logical indicating whether to sort the output by count. Defaults to FALSE.

name

The name of the column containing the counts. Defaults to 'n'.

Value

A tibble with each value of the specified parameter and how often it occurs.

Examples

count_param_values(c("param1=value1&param2=value2", "param1=value3"), "param1")

urlexplorer documentation built on Aug. 8, 2025, 7:29 p.m.