tldextract: Extract the top level domain, domain and subdomain from a...

Description Usage Arguments Details See Also Examples

View source: R/tldextract.R

Description

Given one or more host names, this will return a data frame with four column:

Usage

1

Arguments

host

vector of one or more host names

tldnames

vector of TLD names (see getTLD)

Details

If a hostname is not understandable (no top level domain is matched), it will return NA for the three components.

See Also

getTLD

Examples

1
2
3
4
## Not run: 
hosts <- tldextract(c("www.google.com", "testing.co.uk"), tldnames=getTLD())

## End(Not run)

jayjacobs/tldextract documentation built on Jan. 7, 2020, 12:25 a.m.