extract_host: Extract the host from URL

View source: R/extract.R

extract_hostR Documentation

Extract the host from URL

Description

Extract the host from URL

Usage

extract_host(url)

Arguments

url

A character vector of URLs.

Value

A character vector containing the host from each URL.

Examples

extract_host(c("https://example.com", "http://www.example.com"))

urlexplorer documentation built on Aug. 8, 2025, 7:29 p.m.