powered by
Extract the path from URL
extract_path(url)
A character vector containing the path from each URL.
A character vector of URLs.
extract_path(c("http://example.com/", "http://example.com/path/to/resource"))
Run the code above in your browser using DataLab