powered by
Count different port numbers used in URLs
count_ports(url, sort = FALSE, name = "n")
A tibble with each port and how many times it occurs.
A character vector of URLs.
Logical indicating whether to sort the output by count. Defaults to FALSE.
The name of the column containing the counts. Defaults to 'n'.
count_ports(c("http://example.com:8080", "http://example.com:80"))
Run the code above in your browser using DataLab