| param_remove | R Documentation |
URLs often have queries associated with them, particularly URLs for
APIs, that look like ?key=value&key=value&key=value. param_remove
allows you to remove key/value pairs while leaving the rest of the URL intact.
param_remove(urls, keys)
urls |
a vector of URLs. These should be decoded with |
keys |
a vector of parameter keys to remove. |
the original URLs but with the key/value pairs specified by keys removed.
If the original URL is NA, NA will be returned; if a specified key is NA,
nothing will be done with it.
param_set to modify values associated with keys, or param_get
to retrieve those values.
# Remove multiple parameters from a URL
param_remove(urls = "https://en.wikipedia.org/wiki/api.php?action=list&type=query&format=json",
keys = c("action","format"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.