get_cleaning_function: Get the cleaning function required for a parameter

Description Usage Arguments Value

View source: R/lookups.R

Description

Before a parameter can be added to a request, it often needs to be cleaned. This function returns the appropriate function for a parameter. Parameters can be supplied with their name used in the build() functions ("argument") or in the URL

Usage

1
get_cleaning_function(parameter, format = c("argument", "url"))

Arguments

parameter

character; name of the parameter. Either the parameter as it's passed to the build() functions or the name of the parameter in the URL depending on the value of format

format

character; what format is parameter in? One of "argument" (default) or "url"

Value

character; name of the cleaning function. If there is no associated cleaning function, then NULL


BMRSr documentation built on June 14, 2021, 5:09 p.m.