powered by
Count different paths found in URLs
count_paths(url, sort = FALSE, name = "n")
A tibble with each path and its count.
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_paths(c("http://example.com/index", "http://example.com/home"))
Run the code above in your browser using DataLab