count_queries: Count the occurrence of query strings in URLs

View source: R/count.R

count_queriesR Documentation

Count the occurrence of query strings in URLs

Description

Count the occurrence of query strings in URLs

Usage

count_queries(url, sort = FALSE, name = "n")

Arguments

url

A character vector of URLs.

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 query string and how often it occurs.

Examples

count_queries(c("http://example.com?query1=value1", "http://example.com?query2=value2"))

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