parse_url: Parse a URL

View source: R/parse_url.R

parse_urlR Documentation

Parse a URL

Description

Parse a URL

Usage

parse_url(url)

Arguments

url

url to parse into its components

Value

data.frame with columns protocol, domain, path

Examples


## Not run: 
url <-
c(
  "google.com",
  "google.com/",
  "www.google.com",
  "http://google.com",
  "https://google.com",
  "sub.domain.whatever.de"
  "s-u-b.dom-ain.what-ever.de"
)

parse_url(url)

## End(Not run)


petermeissner/robotstxt documentation built on Nov. 17, 2024, 9:50 p.m.