extract_host()
adds the host of a URL as a new column.
The host is defined as the part following the scheme (e.g., "https://") and
preceding the subdirectory (anything following the next "/"). Note that
for URL entries like chrome-extension://soomething
or http://192.168.0.1/something
,
result will be set to NA
.
Arguments
- wt
webtrack data object.
- varname
character. Name of the column from which to extract the host. Defaults to
"url"
.