Learn R Programming

Rcrawler (version 0.1.9-1)

Linkparamsfilter: Link parameters filter

Description

This function remove a given set of parameters from a specific URL

Usage

Linkparamsfilter(URL, params, removeAllparams = FALSE)

Arguments

URL

character, the URL from which params and values have to be removed

params

character vector, List of url parameters to be removed

removeAllparams,

boolean if true , all url parameters will be removed.

Value

return a URL wihtout given parameters

Details

This function exclude given parameters from the urls,

Examples

Run this code
# NOT RUN {
#remove ord and tmp parameters from the URL
url<-"http://www.glogile.com/index.php?name=jake&age=23&tmp=2&ord=1"
url<-Linkparamsfilter(url,c("ord","tmp"))
#remove all URL parameters
Linkparamsfilter(url,removeAllparams = TRUE)

# }

Run the code above in your browser using DataLab