Learn R Programming

urlexplorer (version 0.1.0)

count_param_values: 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")

Value

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

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'.

Examples

Run this code
count_param_values(c("param1=value1¶m2=value2", "param1=value3"), "param1")

Run the code above in your browser using DataLab