Description Usage Arguments Details See Also Examples
Given one or more host names, this will return a data frame with four column:
"host": the original host name
"tld": the top level domain extracted
"domain" the domain extracted
"subdomain" one or more subdomains prepending the domain
1 | tldextract(host, tldnames = NULL)
|
host |
vector of one or more host names |
tldnames |
vector of TLD names (see |
If a hostname is not understandable (no top level domain is matched), it will return NA for the three components.
getTLD
1 2 3 4 | ## Not run:
hosts <- tldextract(c("www.google.com", "testing.co.uk"), tldnames=getTLD())
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.