get_cleaning_function: Get the cleaning function required for a parameter

View source: R/lookups.R

get_cleaning_functionR Documentation

Get the cleaning function required for a parameter

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

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


ARawles/BMRSr documentation built on Feb. 1, 2023, 12:11 p.m.