count_ports: Count different port numbers used in URLs

View source: R/count.R

count_portsR Documentation

Count different port numbers used in URLs

Description

Count different port numbers used in URLs

Usage

count_ports(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 port and how many times it occurs.

Examples

count_ports(c("http://example.com:8080", "http://example.com:80"))

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