Learn R Programming

R.rsp (version 0.46.0)

getParameter.HttpRequest: Gets a parameter

Description

Gets a parameter.

Usage

# S3 method for HttpRequest
getParameter(this, name, default=NULL, drop=TRUE, ...)

Value

Returns the value(s) of the parameter either as a single value or as a named list. If the parameter does not exist, the default value is returned as is.

Arguments

name

Name of parameter to be retrieved.

default

Value to be returned if parameter is missing.

drop

If TRUE and the number of returned values is one, then this single value is returned, otherwise a named vector.

...

Additional arguments passed to *getParameters().

Author

Henrik Bengtsson

See Also

*hasParameter(). *getParameters(). For more information see HttpRequest.