Learn R Programming

urlparse (version 0.2.1)

url_parse: Parses a URL string into its components.

Description

Parses a URL string into its components.

Usage

url_parse(url)

Value

A list containing the components of the URL: scheme, user, password, host, path, raw_path, query, raw_query, and fragment.

Arguments

url

The URL string to parse.

Examples

Run this code
library(urlparse)
url_parse("https://host.com/path?query#fragment")

Run the code above in your browser using DataLab