Learn R Programming

urlexplorer (version 0.1.0)

extract_host: Extract the host from URL

Description

Extract the host from URL

Usage

extract_host(url)

Value

A character vector containing the host from each URL.

Arguments

url

A character vector of URLs.

Examples

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

Run the code above in your browser using DataLab