count_path_segments | R Documentation |
Count occurrences of specific path segments at a given index
count_path_segments(path, segment_index, sort = FALSE, name = "n")
path |
A character vector of paths. |
segment_index |
Index of the segment 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'. |
A tibble with each segment at the specified index and how often it occurs.
count_path_segments(c("/path/to/resource", "/path/to/shop"), 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.