Learn R Programming

urlexplorer (version 0.1.0)

extract_param_value: Extract the value of a specified parameter from the query string

Description

Extract the value of a specified parameter from the query string

Usage

extract_param_value(query, param_name)

Value

A character vector containing the value of the specified parameter from each query string.

Arguments

query

A character vector of query strings.

param_name

The name of the parameter to extract values for.

Examples

Run this code
extract_param_value(c("param1=val1¶m2=val2", "param1=val3"), "param1")

Run the code above in your browser using DataLab