Rdocumentation
powered by
Learn R Programming
urltools (version 0.6)
extract_host: extract a URL's hostname and provide it
Description
similar to
url_parse
or
extract_parameter
, but for hostnames only.
Usage
extract_host(urls)
Arguments
urls
a vector of URLs
Value
a vector of hostnames. In the event that a hostname cannot be identified, an empty string will be returned.