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